xmllite/tests: Test Read() with NULL type argument.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-01-27 11:17:43 +03:00 committed by Alexandre Julliard
parent 33d8a323d0
commit 7e635876f4
1 changed files with 5 additions and 2 deletions

View File

@ -1841,8 +1841,7 @@ static void test_read_attribute(void)
hr = IXmlReader_SetInput(reader, (IUnknown*)stream);
ok(hr == S_OK, "got %08x\n", hr);
type = XmlNodeType_None;
hr = IXmlReader_Read(reader, &type);
hr = IXmlReader_Read(reader, NULL);
if (test->hr_broken)
ok(hr == test->hr || broken(hr == test->hr_broken), "got %08x for %s\n", hr, test->xml);
@ -1854,6 +1853,10 @@ static void test_read_attribute(void)
WCHAR *str_exp;
UINT len;
type = XmlNodeType_None;
hr = IXmlReader_GetNodeType(reader, &type);
ok(hr == S_OK, "Failed to get node type, %#x\n", hr);
ok(type == XmlNodeType_Element, "got %d for %s\n", type, test->xml);
hr = IXmlReader_MoveToFirstAttribute(reader);