aboutsummaryrefslogtreecommitdiffstats
path: root/test/XPath
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2000-10-13 16:38:25 +0000
committerDaniel Veillard <veillard@src.gnome.org>2000-10-13 16:38:25 +0000
commitff9c33075358e670a8c48bb860b1db6a3d1eae0b (patch)
tree65f6176726da11210ad6bad68fc69e087ca0321e /test/XPath
parent189446d2fa02c2075c6025703f97cc6fadcae9d4 (diff)
downloadandroid_external_libxml2-ff9c33075358e670a8c48bb860b1db6a3d1eae0b.tar.gz
android_external_libxml2-ff9c33075358e670a8c48bb860b1db6a3d1eae0b.tar.bz2
android_external_libxml2-ff9c33075358e670a8c48bb860b1db6a3d1eae0b.zip
More work on XPointer
- xpath.c xpointer.c: XPointer reorder of ranges start/end and string-range for empty strings - test/XPath/docs/str test/XPath/xptr/chaptersrange test/XPath/xptr/strrange: augmented the XPointer testsuite Daniel
Diffstat (limited to 'test/XPath')
-rw-r--r--test/XPath/docs/str1
-rw-r--r--test/XPath/xptr/chaptersrange1
-rw-r--r--test/XPath/xptr/strrange1
3 files changed, 3 insertions, 0 deletions
diff --git a/test/XPath/docs/str b/test/XPath/docs/str
index 7127ca2a..547e54de 100644
--- a/test/XPath/docs/str
+++ b/test/XPath/docs/str
@@ -5,4 +5,5 @@
<p>a diff<em>i</em>cult one</p>
<p><p>a span</p>n<p>ing one</p></p>
<p><p>and an unbal</p><empty/>anced test</p>
+ <p>for empty string <seq>123</seq></p>
</chapter>
diff --git a/test/XPath/xptr/chaptersrange b/test/XPath/xptr/chaptersrange
index 0743111e..4d7a55b4 100644
--- a/test/XPath/xptr/chaptersrange
+++ b/test/XPath/xptr/chaptersrange
@@ -1,3 +1,4 @@
xpointer(//chapter[position() = 2]/range-to(following::chapter[1]))
xpointer(//chapter[position() <= 2]/range-to(following::chapter[1]))
xpointer(//chapter[position() = last()]/range-to(following::chapter[1]))
+xpointer(//chapter[position() = 3]/range-to(/.//chapter[position() = 1]))
diff --git a/test/XPath/xptr/strrange b/test/XPath/xptr/strrange
index 3c2aafce..32319273 100644
--- a/test/XPath/xptr/strrange
+++ b/test/XPath/xptr/strrange
@@ -3,3 +3,4 @@ xpointer(string-range(//p, 'test'))
xpointer(string-range(//p, 'difficult'))
xpointer(string-range(//p, 'spanning'))
xpointer(string-range(//p, 'unbalanced'))
+xpointer(string-range(//seq, ''))