d3drm/tests: Additional test for SetOptions().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-06-30 10:41:21 +03:00 committed by Alexandre Julliard
parent 6f2977c25e
commit 84d340683e
1 changed files with 7 additions and 0 deletions

View File

@ -6804,6 +6804,13 @@ static void test_animation(void)
ok(options == (D3DRMANIMATION_CLOSED | D3DRMANIMATION_LINEARPOSITION),
"Unexpected default options %#x.\n", options);
/* Mask contains undefined bits together with valid one. */
hr = IDirect3DRMAnimation_SetOptions(animation, 0xf0000000 | D3DRMANIMATION_OPEN);
ok(SUCCEEDED(hr), "Failed to set animation options, hr %#x.\n", hr);
options = IDirect3DRMAnimation_GetOptions(animation);
ok(options == (0xf0000000 | D3DRMANIMATION_OPEN), "Unexpected animation options %#x.\n", options);
hr = IDirect3DRMAnimation_SetOptions(animation, D3DRMANIMATION_SCALEANDROTATION);
ok(SUCCEEDED(hr), "Failed to set animation options, hr %#x.\n", hr);