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
8ac57e94
Commit
8ac57e94
authored
Mar 04, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Mar 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Stopped seg faults during regression tests on windows.
parent
2bbb39d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
domdoc.c
dlls/msxml3/tests/domdoc.c
+5
-17
No files found.
dlls/msxml3/tests/domdoc.c
View file @
8ac57e94
...
...
@@ -2316,6 +2316,7 @@ static void test_xmlTypes(void)
hr
=
IXMLDOMElement_get_xml
(
pElement
,
&
str
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
szElementXML3
),
"incorrect element xml
\n
"
);
SysFreeString
(
str
);
IXMLDOMElement_Release
(
pElement
);
}
...
...
@@ -2391,18 +2392,18 @@ static void test_xmlTypes(void)
SysFreeString
(
str
);
/* test length property */
hr
=
IXMLDOMCDATASection_get_length
(
pC
omment
,
&
len
);
hr
=
IXMLDOMCDATASection_get_length
(
pC
DataSec
,
&
len
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
len
==
21
,
"expected 21 got %ld
\n
"
,
len
);
/* test get nodeValue */
hr
=
IXMLDOMCDATASection_get_nodeValue
(
pC
omment
,
&
var
);
hr
=
IXMLDOMCDATASection_get_nodeValue
(
pC
DataSec
,
&
var
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"This &is a ; test <>
\\
"
)
),
"incorrect text string
\n
"
);
VariantClear
(
&
var
);
/* test get data */
hr
=
IXMLDOMCDATASection_get_data
(
pC
omment
,
&
str
);
hr
=
IXMLDOMCDATASection_get_data
(
pC
DataSec
,
&
str
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"This &is a ; test <>
\\
"
)
),
"incorrect text string
\n
"
);
SysFreeString
(
str
);
...
...
@@ -2470,7 +2471,7 @@ static void test_xmlTypes(void)
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"documentfragment"
)
),
"incorrect nodeTypeString string
\n
"
);
SysFreeString
(
str
);
IXMLDOMDocumentFragment_Release
(
p
CDataSec
);
IXMLDOMDocumentFragment_Release
(
p
DocFrag
);
}
/* Entity References */
...
...
@@ -2696,19 +2697,6 @@ static void test_nodeTypeTests( void )
IXMLDOMElement_Release
(
pElement
);
}
/* Byte */
hr
=
IXMLDOMDocument_createElement
(
doc
,
_bstr_
(
"Testing_byte"
),
&
pElement
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
IXMLDOMElement_appendChild
(
pRoot
,
(
IXMLDOMNode
*
)
pElement
,
NULL
);
hr
=
IXMLDOMElement_put_dataType
(
pElement
,
_bstr_
(
"byte"
)
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
IXMLDOMElement_Release
(
pElement
);
}
/* I2 */
hr
=
IXMLDOMDocument_createElement
(
doc
,
_bstr_
(
"Testing_I2"
),
&
pElement
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
...
...
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