[XMLLITE_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 17 Nov 2016 23:31:04 +0000 (23:31 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 17 Nov 2016 23:31:04 +0000 (23:31 +0000)
svn path=/trunk/; revision=73312

rostests/winetests/xmllite/reader.c

index 130b978..44e8e59 100644 (file)
@@ -1790,6 +1790,23 @@ static void test_read_attribute(void)
     IXmlReader_Release(reader);
 }
 
+static void test_reader_properties(void)
+{
+    IXmlReader *reader;
+    HRESULT hr;
+
+    hr = CreateXmlReader(&IID_IXmlReader, (void**)&reader, NULL);
+    ok(hr == S_OK, "S_OK, got %08x\n", hr);
+
+    hr = IXmlReader_SetProperty(reader, XmlReaderProperty_MultiLanguage, 0);
+    ok(hr == S_OK, "SetProperty failed: %08x\n", hr);
+
+    hr = IXmlReader_SetProperty(reader, XmlReaderProperty_MaxElementDepth, 0);
+    ok(hr == S_OK, "SetProperty failed: %08x\n", hr);
+
+    IXmlReader_Release(reader);
+}
+
 START_TEST(reader)
 {
     test_reader_create();
@@ -1807,4 +1824,5 @@ START_TEST(reader)
     test_read_pending();
     test_readvaluechunk();
     test_read_xmldeclaration();
+    test_reader_properties();
 }