diff options
Diffstat (limited to 'test/XPath/tests')
-rw-r--r-- | test/XPath/tests/chaptersbase | 9 | ||||
-rw-r--r-- | test/XPath/tests/chaptersprefol | 8 | ||||
-rw-r--r-- | test/XPath/tests/idsimple | 3 | ||||
-rw-r--r-- | test/XPath/tests/simpleabbr | 10 | ||||
-rw-r--r-- | test/XPath/tests/simplebase | 9 | ||||
-rw-r--r-- | test/XPath/tests/usr1check | 1 | ||||
-rw-r--r-- | test/XPath/tests/vidbase | 5 |
7 files changed, 45 insertions, 0 deletions
diff --git a/test/XPath/tests/chaptersbase b/test/XPath/tests/chaptersbase new file mode 100644 index 0000000..daa53b7 --- /dev/null +++ b/test/XPath/tests/chaptersbase @@ -0,0 +1,9 @@ +/child::EXAMPLE +/child::* +/child::EXAMPLE/child::head +/child::EXAMPLE/child::* +/child::EXAMPLE/child::head/child::title +/child::EXAMPLE/child::head/child::title/child::text() +/child::EXAMPLE/child::head/node() +/descendant::title +/descendant::p/ancestor::chapter diff --git a/test/XPath/tests/chaptersprefol b/test/XPath/tests/chaptersprefol new file mode 100644 index 0000000..8f1e65b --- /dev/null +++ b/test/XPath/tests/chaptersprefol @@ -0,0 +1,8 @@ +/following::* +/preceding::* +/child::EXAMPLE/preceding::* +/child::EXAMPLE/following::* +/child::EXAMPLE/child::chapter[3]/preceding::* +/child::EXAMPLE/child::chapter[3]/following::* +/child::EXAMPLE/child::chapter[1]/image/preceding::* +/child::EXAMPLE/child::chapter[1]/image/following::* diff --git a/test/XPath/tests/idsimple b/test/XPath/tests/idsimple new file mode 100644 index 0000000..2841ae9 --- /dev/null +++ b/test/XPath/tests/idsimple @@ -0,0 +1,3 @@ +//*[@id="root"] +//*[@id="chapter2"] +//*[@id="chapter5"] diff --git a/test/XPath/tests/simpleabbr b/test/XPath/tests/simpleabbr new file mode 100644 index 0000000..8de476f --- /dev/null +++ b/test/XPath/tests/simpleabbr @@ -0,0 +1,10 @@ +/EXAMPLE +/EXAMPLE/head +/EXAMPLE/chapter[1] +//p +//chapter/image +//p/text() +//p/text()[position()=1] +//p/text()[position()=last()] +(//p/text())[position()=1] +(//p/text())[position()=last()] diff --git a/test/XPath/tests/simplebase b/test/XPath/tests/simplebase new file mode 100644 index 0000000..7e4203a --- /dev/null +++ b/test/XPath/tests/simplebase @@ -0,0 +1,9 @@ +/child::* +/child::EXAMPLE +/child::EXAMPLE/child::head +/child::EXAMPLE/child::* +/child::EXAMPLE/child::head/child::title +/child::EXAMPLE/child::head/child::title/child::text() +/child::EXAMPLE/child::head/node() +/descendant::title +/descendant::p/ancestor::chapter diff --git a/test/XPath/tests/usr1check b/test/XPath/tests/usr1check new file mode 100644 index 0000000..c38d003 --- /dev/null +++ b/test/XPath/tests/usr1check @@ -0,0 +1 @@ +//ITEM[1] diff --git a/test/XPath/tests/vidbase b/test/XPath/tests/vidbase new file mode 100644 index 0000000..5cd79ac --- /dev/null +++ b/test/XPath/tests/vidbase @@ -0,0 +1,5 @@ +id('chapter1') +id('chapter3') +id('chapter1')/p +id('chapter1')//p +id('chapter1')/p[1] |