Commit 84d34068 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

d3drm/tests: Additional test for SetOptions().

parent 6f2977c2
...@@ -6804,6 +6804,13 @@ static void test_animation(void) ...@@ -6804,6 +6804,13 @@ static void test_animation(void)
ok(options == (D3DRMANIMATION_CLOSED | D3DRMANIMATION_LINEARPOSITION), ok(options == (D3DRMANIMATION_CLOSED | D3DRMANIMATION_LINEARPOSITION),
"Unexpected default options %#x.\n", options); "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); hr = IDirect3DRMAnimation_SetOptions(animation, D3DRMANIMATION_SCALEANDROTATION);
ok(SUCCEEDED(hr), "Failed to set animation options, hr %#x.\n", hr); ok(SUCCEEDED(hr), "Failed to set animation options, hr %#x.\n", hr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment