Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9c0486d7
Commit
9c0486d7
authored
May 09, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/tests: Really test load() on files with leading spaces.
parent
b2a5d37a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
domdoc.c
dlls/msxml3/tests/domdoc.c
+18
-1
No files found.
dlls/msxml3/tests/domdoc.c
View file @
9c0486d7
...
...
@@ -2061,8 +2061,12 @@ static void test_domdoc( void )
LONG
code
,
ref
;
LONG
nLength
=
0
;
WCHAR
buff
[
100
];
char
path
[
MAX_PATH
];
int
index
;
GetTempPathA
(
MAX_PATH
,
path
);
strcat
(
path
,
"leading_spaces.xml"
);
/* Load document with leading spaces
*
* Test all CLSIDs with all test data XML strings
...
...
@@ -2087,13 +2091,24 @@ static void test_domdoc( void )
i
=
0
;
while
(
*
data_ptr
)
{
BSTR
data
=
_bstr_
(
*
data_ptr
);
DWORD
written
;
HANDLE
file
;
file
=
CreateFileA
(
path
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"can't create file %s: %u
\n
"
,
path
,
GetLastError
());
WriteFile
(
file
,
data
,
lstrlenW
(
data
)
*
sizeof
(
WCHAR
),
&
written
,
NULL
);
CloseHandle
(
file
);
b
=
0xc
;
V_VT
(
&
var
)
=
VT_BSTR
;
V_BSTR
(
&
var
)
=
data
;
V_BSTR
(
&
var
)
=
_bstr_
(
path
)
;
hr
=
IXMLDOMDocument_load
(
doc
,
var
,
&
b
);
todo_wine
{
EXPECT_HR
(
hr
,
class_ptr
->
ret
[
0
].
hr
);
ok
(
b
==
class_ptr
->
ret
[
0
].
b
,
"%d:%d, got %d, expected %d
\n
"
,
index
,
i
,
b
,
class_ptr
->
ret
[
0
].
b
);
}
DeleteFileA
(
path
);
b
=
0xc
;
hr
=
IXMLDOMDocument_loadXML
(
doc
,
data
,
&
b
);
...
...
@@ -2103,8 +2118,10 @@ static void test_domdoc( void )
data_ptr
++
;
i
++
;
}
class_ptr
++
;
index
++
;
free_bstrs
();
}
doc
=
create_document
(
&
IID_IXMLDOMDocument
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment