mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
Added regression tests for the latest XPath/pattern fixes.
* test/XPath/docs/nodes test/XPath/tests/nodespat result/XPath/tests/nodespat: Added regression tests for the latest XPath/pattern fixes.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
Thu Jan 5 15:48:27 CET 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
|
||||||
|
|
||||||
|
* test/XPath/docs/nodes test/XPath/tests/nodespat
|
||||||
|
result/XPath/tests/nodespat: Added regression tests for
|
||||||
|
the latest XPath/pattern fixes.
|
||||||
|
|
||||||
Thu Jan 5 15:43:38 CET 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
|
Thu Jan 5 15:43:38 CET 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
|
||||||
|
|
||||||
* pattern.c: Another fix to handle "foo//.": "foo" was not
|
* pattern.c: Another fix to handle "foo//.": "foo" was not
|
||||||
|
94
result/XPath/tests/nodespat
Normal file
94
result/XPath/tests/nodespat
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
|
||||||
|
========================
|
||||||
|
Expression: /.
|
||||||
|
Object is a Node Set :
|
||||||
|
Set contains 1 nodes:
|
||||||
|
1 /
|
||||||
|
|
||||||
|
========================
|
||||||
|
Expression: //.
|
||||||
|
Object is a Node Set :
|
||||||
|
Set contains 12 nodes:
|
||||||
|
1 /
|
||||||
|
2 ELEMENT root
|
||||||
|
3 ELEMENT foo
|
||||||
|
4 TEXT
|
||||||
|
content=txt
|
||||||
|
5 COMMENT
|
||||||
|
content=hello
|
||||||
|
6 CDATA_SECTION
|
||||||
|
content=data
|
||||||
|
7 PI target
|
||||||
|
content=data
|
||||||
|
8 ELEMENT bar
|
||||||
|
9 TEXT
|
||||||
|
content=txt
|
||||||
|
10 COMMENT
|
||||||
|
content=hello
|
||||||
|
11 CDATA_SECTION
|
||||||
|
content=data
|
||||||
|
12 PI target
|
||||||
|
content=data
|
||||||
|
|
||||||
|
========================
|
||||||
|
Expression: /root//.
|
||||||
|
Object is a Node Set :
|
||||||
|
Set contains 11 nodes:
|
||||||
|
1 ELEMENT root
|
||||||
|
2 ELEMENT foo
|
||||||
|
3 TEXT
|
||||||
|
content=txt
|
||||||
|
4 COMMENT
|
||||||
|
content=hello
|
||||||
|
5 CDATA_SECTION
|
||||||
|
content=data
|
||||||
|
6 PI target
|
||||||
|
content=data
|
||||||
|
7 ELEMENT bar
|
||||||
|
8 TEXT
|
||||||
|
content=txt
|
||||||
|
9 COMMENT
|
||||||
|
content=hello
|
||||||
|
10 CDATA_SECTION
|
||||||
|
content=data
|
||||||
|
11 PI target
|
||||||
|
content=data
|
||||||
|
|
||||||
|
========================
|
||||||
|
Expression: //.//./././/.
|
||||||
|
Object is a Node Set :
|
||||||
|
Set contains 12 nodes:
|
||||||
|
1 /
|
||||||
|
2 ELEMENT root
|
||||||
|
3 ELEMENT foo
|
||||||
|
4 TEXT
|
||||||
|
content=txt
|
||||||
|
5 COMMENT
|
||||||
|
content=hello
|
||||||
|
6 CDATA_SECTION
|
||||||
|
content=data
|
||||||
|
7 PI target
|
||||||
|
content=data
|
||||||
|
8 ELEMENT bar
|
||||||
|
9 TEXT
|
||||||
|
content=txt
|
||||||
|
10 COMMENT
|
||||||
|
content=hello
|
||||||
|
11 CDATA_SECTION
|
||||||
|
content=data
|
||||||
|
12 PI target
|
||||||
|
content=data
|
||||||
|
|
||||||
|
========================
|
||||||
|
Expression: /root//././/bar//.
|
||||||
|
Object is a Node Set :
|
||||||
|
Set contains 5 nodes:
|
||||||
|
1 ELEMENT bar
|
||||||
|
2 TEXT
|
||||||
|
content=txt
|
||||||
|
3 COMMENT
|
||||||
|
content=hello
|
||||||
|
4 CDATA_SECTION
|
||||||
|
content=data
|
||||||
|
5 PI target
|
||||||
|
content=data
|
2
test/XPath/docs/nodes
Normal file
2
test/XPath/docs/nodes
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<root><foo>txt<!--hello--><![CDATA[data]]><?target data?><bar>txt<!--hello--><![CDATA[data]]><?target data?></bar></foo></root>
|
5
test/XPath/tests/nodespat
Normal file
5
test/XPath/tests/nodespat
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
/.
|
||||||
|
//.
|
||||||
|
/root//.
|
||||||
|
//.//./././/.
|
||||||
|
/root//././/bar//.
|
Reference in New Issue
Block a user