Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
35643b73
Commit
35643b73
authored
Oct 27, 2010
by
Adam Martinson
Committed by
Alexandre Julliard
Oct 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/tests: Add namespace-related XSLPattern tests.
parent
fec2199f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+58
-0
No files found.
dlls/msxml3/tests/domdoc.c
View file @
35643b73
...
@@ -6481,6 +6481,64 @@ static void test_XSLPattern(void)
...
@@ -6481,6 +6481,64 @@ static void test_XSLPattern(void)
if
(
len
)
if
(
len
)
expect_list_and_release
(
list
,
"E2.E2.D1 E3.E2.D1"
);
expect_list_and_release
(
list
,
"E2.E2.D1 E3.E2.D1"
);
/* namespace handling */
/* no registered namespaces */
ole_check
(
IXMLDOMDocument2_setProperty
(
doc
,
_bstr_
(
"SelectionNamespaces"
),
_variantbstr_
(
""
)));
list
=
NULL
;
/* prefixes don't need to be registered, you may use them as they are in the doc */
todo_wine
ole_check
(
IXMLDOMDocument2_selectNodes
(
doc
,
_bstr_
(
"//bar:x"
),
&
list
));
if
(
list
)
{
len
=
0
;
ole_check
(
IXMLDOMNodeList_get_length
(
list
,
&
len
));
todo_wine
ok
(
len
!=
0
,
"expected filled list
\n
"
);
if
(
len
)
todo_wine
expect_list_and_release
(
list
,
"E5.E1.E4.E1.E2.D1 E6.E2.E4.E1.E2.D1"
);
}
/* prefixes must be explicitly specified in the name */
todo_wine
ole_check
(
IXMLDOMDocument2_selectNodes
(
doc
,
_bstr_
(
"//foo:elem"
),
&
list
));
if
(
list
)
{
len
=
0
;
ole_check
(
IXMLDOMNodeList_get_length
(
list
,
&
len
));
todo_wine
ok
(
len
==
0
,
"expected empty list
\n
"
);
if
(
len
)
IXMLDOMNodeList_Release
(
list
);
}
todo_wine
ole_check
(
IXMLDOMDocument2_selectNodes
(
doc
,
_bstr_
(
"//foo:c"
),
&
list
));
if
(
list
)
{
len
=
0
;
ole_check
(
IXMLDOMNodeList_get_length
(
list
,
&
len
));
todo_wine
ok
(
len
!=
0
,
"expected filled list
\n
"
);
if
(
len
)
todo_wine
expect_list_and_release
(
list
,
"E3.E4.E2.D1"
);
}
/* explicitly register prefix foo */
ole_check
(
IXMLDOMDocument2_setProperty
(
doc
,
_bstr_
(
"SelectionNamespaces"
),
_variantbstr_
(
"xmlns:foo='urn:uuid:86B2F87F-ACB6-45cd-8B77-9BDB92A01A29'"
)));
/* now we get the same behavior as XPath */
ole_check
(
IXMLDOMDocument2_selectNodes
(
doc
,
_bstr_
(
"//foo:c"
),
&
list
));
len
=
0
;
ole_check
(
IXMLDOMNodeList_get_length
(
list
,
&
len
));
ok
(
len
!=
0
,
"expected filled list
\n
"
);
if
(
len
)
expect_list_and_release
(
list
,
"E3.E3.E2.D1 E3.E4.E2.D1"
);
/* set prefix foo to some non-existant namespace */
ole_check
(
IXMLDOMDocument2_setProperty
(
doc
,
_bstr_
(
"SelectionNamespaces"
),
_variantbstr_
(
"xmlns:foo='urn:non-existant-foo'"
)));
/* the registered prefix takes precedence */
ole_check
(
IXMLDOMDocument2_selectNodes
(
doc
,
_bstr_
(
"//foo:c"
),
&
list
));
len
=
0
;
ole_check
(
IXMLDOMNodeList_get_length
(
list
,
&
len
));
ok
(
len
==
0
,
"expected empty list
\n
"
);
if
(
len
)
IXMLDOMNodeList_Release
(
list
);
IXMLDOMDocument2_Release
(
doc
);
IXMLDOMDocument2_Release
(
doc
);
free_bstrs
();
free_bstrs
();
...
...
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