mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
Lots of additional cases by EmuandCo.
svn path=/trunk/; revision=26765
This commit is contained in:
parent
03466c9be1
commit
ec669d109c
1 changed files with 162 additions and 57 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
HWND CreateBasicWindow (VOID);
|
||||
|
||||
BOOL Test_CreateSurface (INT* passed, INT* failed)
|
||||
|
@ -37,64 +36,170 @@ BOOL Test_CreateSurface (INT* passed, INT* failed)
|
|||
TEST ( DirectDraw->CreateSurface(&Desc, NULL, NULL) == DDERR_INVALIDPARAMS );
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS );
|
||||
|
||||
Desc.dwHeight = 200;
|
||||
Desc.dwWidth = 200;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.dwSize = sizeof (DDSURFACEDESC2);
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS );
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK);
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_3DDEVICE;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK);
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_ALLOCONLOAD;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_ALPHA;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_BACKBUFFER;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_COMPLEX;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_FLIP;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_FRONTBUFFER;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_HWCODEC;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK);
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_LIVEVIDEO;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK);
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_LOCALVIDMEM;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_MIPMAP;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_MODEX;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK);
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_NONLOCALVIDMEM;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK);
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_OPTIMIZED;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_OVERLAY;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK);
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_OWNDC;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_UNSUPPORTED);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_PALETTE;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK );
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_STANDARDVGAMODE;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK);
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_SYSTEMMEMORY;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK);
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_TEXTURE;
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK );
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_3DDEVICE;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_VIDEOMEMORY;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK);
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_ALLOCONLOAD;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_VIDEOPORT;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DD_OK);
|
||||
TEST ( DirectDrawSurface && DirectDrawSurface->Release() == DD_OK );
|
||||
DirectDrawSurface = NULL;
|
||||
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_VISIBLE;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_ALPHA;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_BACKBUFFER;
|
||||
Desc.dwFlags = DDSD_CAPS;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_WRITEONLY;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_COMPLEX;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_FLIP;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_HWCODEC;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_LIVEVIDEO;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_LOCALVIDMEM;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_MIPMAP;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDCAPS);
|
||||
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_MODEX;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
|
||||
DirectDrawSurface = NULL;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_MODEX;
|
||||
Desc.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
|
||||
Desc.ddsCaps.dwCaps = DDSCAPS_ZBUFFER;
|
||||
TEST ( DirectDraw->CreateSurface(&Desc, &DirectDrawSurface, NULL) == DDERR_INVALIDPARAMS);
|
||||
|
||||
DirectDraw->Release();
|
||||
|
|
Loading…
Reference in a new issue