diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-11-17 21:10:17 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-11-17 21:10:17 (GMT) |
commit | 8096d34300076a1aa9cb517de49fb920a051939f (patch) | |
tree | 5f2b1b7c41f89fedc31af973d6a747ca674cfd24 /libxml2/test/XPath/tests | |
parent | fc7f7edd0b8011cb71573b15462ef83068d9e54b (diff) | |
parent | 574585fa78070b0cc6b5ad22543e21a3502a122b (diff) | |
download | blt-8096d34300076a1aa9cb517de49fb920a051939f.zip blt-8096d34300076a1aa9cb517de49fb920a051939f.tar.gz blt-8096d34300076a1aa9cb517de49fb920a051939f.tar.bz2 |
Merge commit '574585fa78070b0cc6b5ad22543e21a3502a122b' as 'libxml2'
Diffstat (limited to 'libxml2/test/XPath/tests')
-rw-r--r-- | libxml2/test/XPath/tests/chaptersbase | 10 | ||||
-rw-r--r-- | libxml2/test/XPath/tests/chaptersprefol | 8 | ||||
-rw-r--r-- | libxml2/test/XPath/tests/idsimple | 3 | ||||
-rw-r--r-- | libxml2/test/XPath/tests/langsimple | 5 | ||||
-rw-r--r-- | libxml2/test/XPath/tests/mixedpat | 7 | ||||
-rw-r--r-- | libxml2/test/XPath/tests/nodespat | 5 | ||||
-rw-r--r-- | libxml2/test/XPath/tests/nssimple | 3 | ||||
-rw-r--r-- | libxml2/test/XPath/tests/simpleabbr | 10 | ||||
-rw-r--r-- | libxml2/test/XPath/tests/simplebase | 15 | ||||
-rw-r--r-- | libxml2/test/XPath/tests/usr1check | 1 | ||||
-rw-r--r-- | libxml2/test/XPath/tests/vidbase | 5 |
11 files changed, 72 insertions, 0 deletions
diff --git a/libxml2/test/XPath/tests/chaptersbase b/libxml2/test/XPath/tests/chaptersbase new file mode 100644 index 0000000..17638f7 --- /dev/null +++ b/libxml2/test/XPath/tests/chaptersbase @@ -0,0 +1,10 @@ +/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 +//p[1] diff --git a/libxml2/test/XPath/tests/chaptersprefol b/libxml2/test/XPath/tests/chaptersprefol new file mode 100644 index 0000000..8f1e65b --- /dev/null +++ b/libxml2/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/libxml2/test/XPath/tests/idsimple b/libxml2/test/XPath/tests/idsimple new file mode 100644 index 0000000..2841ae9 --- /dev/null +++ b/libxml2/test/XPath/tests/idsimple @@ -0,0 +1,3 @@ +//*[@id="root"] +//*[@id="chapter2"] +//*[@id="chapter5"] diff --git a/libxml2/test/XPath/tests/langsimple b/libxml2/test/XPath/tests/langsimple new file mode 100644 index 0000000..f71a321 --- /dev/null +++ b/libxml2/test/XPath/tests/langsimple @@ -0,0 +1,5 @@ +//*[lang('en')] +//*[lang('en-us')] +//*[lang('en-gb')] +//*[lang('fr')] +//*[lang('')] diff --git a/libxml2/test/XPath/tests/mixedpat b/libxml2/test/XPath/tests/mixedpat new file mode 100644 index 0000000..c212f6c --- /dev/null +++ b/libxml2/test/XPath/tests/mixedpat @@ -0,0 +1,7 @@ +s +s|p1/s +s|/root/p1/s +/root/p1/s|s +//s +//s|p1 +p1|//s diff --git a/libxml2/test/XPath/tests/nodespat b/libxml2/test/XPath/tests/nodespat new file mode 100644 index 0000000..c157a3e --- /dev/null +++ b/libxml2/test/XPath/tests/nodespat @@ -0,0 +1,5 @@ +/. +//. +/root//. +//.//./././/. +/root//././/bar//.
\ No newline at end of file diff --git a/libxml2/test/XPath/tests/nssimple b/libxml2/test/XPath/tests/nssimple new file mode 100644 index 0000000..d2a9528 --- /dev/null +++ b/libxml2/test/XPath/tests/nssimple @@ -0,0 +1,3 @@ +/doc/elem/namespace::node()/.. +/doc/elem/namespace::*/self::node()[true()] +//*[namespace::ns1] diff --git a/libxml2/test/XPath/tests/simpleabbr b/libxml2/test/XPath/tests/simpleabbr new file mode 100644 index 0000000..8de476f --- /dev/null +++ b/libxml2/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/libxml2/test/XPath/tests/simplebase b/libxml2/test/XPath/tests/simplebase new file mode 100644 index 0000000..8b2c7d1 --- /dev/null +++ b/libxml2/test/XPath/tests/simplebase @@ -0,0 +1,15 @@ +/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() +/child::EXAMPLE/attribute::prop1/self::node() +/child::EXAMPLE/attribute::prop1/self::* +/child::EXAMPLE/attribute::prop1/descendant-or-self::node() +/child::EXAMPLE/attribute::prop1/descendant-or-self::* +/child::EXAMPLE/attribute::prop1/ancestor-or-self::node() +/child::EXAMPLE/attribute::prop1/ancestor-or-self::* +/descendant::title +/descendant::p/ancestor::chapter diff --git a/libxml2/test/XPath/tests/usr1check b/libxml2/test/XPath/tests/usr1check new file mode 100644 index 0000000..c38d003 --- /dev/null +++ b/libxml2/test/XPath/tests/usr1check @@ -0,0 +1 @@ +//ITEM[1] diff --git a/libxml2/test/XPath/tests/vidbase b/libxml2/test/XPath/tests/vidbase new file mode 100644 index 0000000..5cd79ac --- /dev/null +++ b/libxml2/test/XPath/tests/vidbase @@ -0,0 +1,5 @@ +id('chapter1') +id('chapter3') +id('chapter1')/p +id('chapter1')//p +id('chapter1')/p[1] |