[PATCH 1/5] d2d1/tests: Add more test xml.

Ziqing Hui zhui at codeweavers.com
Mon Jun 6 02:35:21 CDT 2022


Signed-off-by: Ziqing Hui <zhui at codeweavers.com>
---
 dlls/d2d1/tests/d2d1.c | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/dlls/d2d1/tests/d2d1.c b/dlls/d2d1/tests/d2d1.c
index bc662b4f8ae..3e385b2b05f 100644
--- a/dlls/d2d1/tests/d2d1.c
+++ b/dlls/d2d1/tests/d2d1.c
@@ -170,6 +170,29 @@ L"<?xml version='1.0'?>                                                       \
     </Effect>                                                                 \
 ";
 
+static const WCHAR *effect_xml_wrong_type =
+L"<?xml version='1.0'?>                                                       \
+    <Effect>                                                                  \
+        <Property name='DisplayName' type='string' value='TestEffect'/>       \
+        <Property name='Author'      type='uint32' value='32'/>               \
+        <Property name='Category'    type='string' value='Test'/>             \
+        <Property name='Description' type='string' value='Test effect.'/>     \
+        <Inputs/>                                                             \
+    </Effect>                                                                 \
+";
+
+static const WCHAR *effect_xml_duplicate_property =
+L"<?xml version='1.0'?>                                                       \
+    <Effect>                                                                  \
+        <Property name='DisplayName' type='string'/>                          \
+        <Property name='Author'      type='string'/>                          \
+        <Property name='Category'    type='string'/>                          \
+        <Property name='Description' type='string'/>                          \
+        <Property name='Description' type='string'/>                          \
+        <Inputs/>                                                             \
+    </Effect>                                                                 \
+";
+
 static const DWORD test_vs[] =
 {
 #if 0
@@ -10615,6 +10638,8 @@ static void test_effect_register(BOOL d3d11)
         {effect_xml_without_category,    E_INVALIDARG},
         {effect_xml_without_description, E_INVALIDARG},
         {effect_xml_without_type,        E_INVALIDARG},
+        {effect_xml_wrong_type,          E_INVALIDARG},
+        {effect_xml_duplicate_property,  E_INVALIDARG},
     };
 
     const D2D1_PROPERTY_BINDING binding[] =
-- 
2.25.1




More information about the wine-devel mailing list