Andrey Turkin : msxml3: Add test to highlight another difference between XSLPattern and XPath.

Alexandre Julliard julliard at winehq.org
Mon Jul 5 12:10:00 CDT 2010


Module: wine
Branch: master
Commit: 1339267ee8b9c144d0f1edb129f2cb2b6dda39af
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1339267ee8b9c144d0f1edb129f2cb2b6dda39af

Author: Andrey Turkin <andrey.turkin at gmail.com>
Date:   Mon Jul  5 12:27:45 2010 +0400

msxml3: Add test to highlight another difference between XSLPattern and XPath.

---

 dlls/msxml3/tests/domdoc.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index 21e8178..aa16a03 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -5589,6 +5589,14 @@ static void test_XSLPattern(void)
     /* switch to XPath */
     ole_check(IXMLDOMDocument2_setProperty(doc, _bstr_("SelectionLanguage"), _variantbstr_("XSLPattern")));
 
+    /* XPath doesn't select elements with non-null default namespace with unqualified selectors, XSLPattern does */
+    ole_check(IXMLDOMDocument2_selectNodes(doc, _bstr_("//elem/c"), &list));
+    len = 0;
+    ole_check(IXMLDOMNodeList_get_length(list, &len));
+    /* should select <elem><c> and <elem xmlns='...'><c> but not <elem><foo:c> */
+    todo_wine ok(len == 3, "expected 3 entries in list, got %d\n", len);
+    IXMLDOMNodeList_Release(list);
+
     /* for XSLPattern start index is 0, for XPath it's 1 */
     ole_check(IXMLDOMDocument2_selectNodes(doc, _bstr_("root//elem[0]"), &list));
     len = 0;




More information about the wine-cvs mailing list