From: Mohamad Al-Jaf mohamadaljaf@gmail.com
--- dlls/windows.ui/tests/uisettings.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
diff --git a/dlls/windows.ui/tests/uisettings.c b/dlls/windows.ui/tests/uisettings.c index c4a67c8eb28..e1226cd3f7c 100644 --- a/dlls/windows.ui/tests/uisettings.c +++ b/dlls/windows.ui/tests/uisettings.c @@ -49,12 +49,22 @@ static void check_interface_( unsigned int line, void *obj, const IID *iid, BOOL IUnknown_Release( unk ); }
+static void reset_color( Color *value ) +{ + value->A = 1; + value->R = 1; + value->G = 1; + value->B = 1; +} + static void test_UISettings_Statics(void) { static const WCHAR *uisettings_name = L"Windows.UI.ViewManagement.UISettings"; IUISettings3 *uisettings_statics3; IActivationFactory *factory; IInspectable *inspectable; + UIColorType type; + Color value; HSTRING str; HRESULT hr; LONG ref; @@ -86,6 +96,18 @@ static void test_UISettings_Statics(void) goto skip_uisettings_statics3; }
+ reset_color(&value); + type = UIColorType_Foreground; + hr = IUISettings3_GetColorValue( uisettings_statics3, type, &value ); + ok( hr == S_OK, "GetColorValue returned %#lx\n", hr ); + ok( value.A == 0 && value.R == 0 && value.G == 0 && value.B == 0, "got unexpected value.A == %d value.R == %d value.G == %d value.B == %d\n", value.A, value.R, value.G, value.B ); + + reset_color(&value); + type = UIColorType_Background; + hr = IUISettings3_GetColorValue( uisettings_statics3, type, &value ); + ok( hr == S_OK, "GetColorValue returned %#lx\n", hr ); + ok( value.A == 0 && value.R == 255 && value.G == 255 && value.B == 255, "got unexpected value.A == %d value.R == %d value.G == %d value.B == %d\n", value.A, value.R, value.G, value.B ); + IUISettings3_Release( uisettings_statics3 );
skip_uisettings_statics3: