diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-11-17 20:57:20 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-11-17 20:57:20 (GMT) |
commit | 5720be2a1ff34bf88992db24716f1e489a745e01 (patch) | |
tree | 459fb7d1a9611f563e3000386df5cb7cdf506916 /libxml2/result/XPath/tests | |
parent | abe7ce3988e8ba12f6bdb311c576e275435de21d (diff) | |
download | blt-5720be2a1ff34bf88992db24716f1e489a745e01.zip blt-5720be2a1ff34bf88992db24716f1e489a745e01.tar.gz blt-5720be2a1ff34bf88992db24716f1e489a745e01.tar.bz2 |
local fork libxml2
Diffstat (limited to 'libxml2/result/XPath/tests')
-rw-r--r-- | libxml2/result/XPath/tests/chaptersbase | 125 | ||||
-rw-r--r-- | libxml2/result/XPath/tests/chaptersprefol | 100 | ||||
-rw-r--r-- | libxml2/result/XPath/tests/idsimple | 33 | ||||
-rw-r--r-- | libxml2/result/XPath/tests/langsimple | 60 | ||||
-rw-r--r-- | libxml2/result/XPath/tests/mixedpat | 101 | ||||
-rw-r--r-- | libxml2/result/XPath/tests/nodespat | 94 | ||||
-rw-r--r-- | libxml2/result/XPath/tests/nssimple | 24 | ||||
-rw-r--r-- | libxml2/result/XPath/tests/simpleabbr | 81 | ||||
-rw-r--r-- | libxml2/result/XPath/tests/simplebase | 127 | ||||
-rw-r--r-- | libxml2/result/XPath/tests/usr1check | 12 | ||||
-rw-r--r-- | libxml2/result/XPath/tests/vidbase | 42 |
11 files changed, 0 insertions, 799 deletions
diff --git a/libxml2/result/XPath/tests/chaptersbase b/libxml2/result/XPath/tests/chaptersbase deleted file mode 100644 index e023bf0..0000000 --- a/libxml2/result/XPath/tests/chaptersbase +++ /dev/null @@ -1,125 +0,0 @@ - -======================== -Expression: /child::EXAMPLE -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT EXAMPLE - ATTRIBUTE prop1 - TEXT - content=gnome is great - ATTRIBUTE prop2 - TEXT - content=& linux too - -======================== -Expression: /child::* -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT EXAMPLE - ATTRIBUTE prop1 - TEXT - content=gnome is great - ATTRIBUTE prop2 - TEXT - content=& linux too - -======================== -Expression: /child::EXAMPLE/child::head -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT head - -======================== -Expression: /child::EXAMPLE/child::* -Object is a Node Set : -Set contains 6 nodes: -1 ELEMENT head -2 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter1 -3 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter2 -4 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter3 -5 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter4 -6 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter5 - -======================== -Expression: /child::EXAMPLE/child::head/child::title -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT title - -======================== -Expression: /child::EXAMPLE/child::head/child::title/child::text() -Object is a Node Set : -Set contains 1 nodes: -1 TEXT - content=Welcome to Gnome - -======================== -Expression: /child::EXAMPLE/child::head/node() -Object is a Node Set : -Set contains 3 nodes: -1 TEXT - content= -2 ELEMENT title -3 TEXT - content= - -======================== -Expression: /descendant::title -Object is a Node Set : -Set contains 6 nodes: -1 ELEMENT title -2 ELEMENT title -3 ELEMENT title -4 ELEMENT title -5 ELEMENT title -6 ELEMENT title - -======================== -Expression: /descendant::p/ancestor::chapter -Object is a Node Set : -Set contains 5 nodes: -1 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter1 -2 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter2 -3 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter3 -4 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter4 -5 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter5 - -======================== -Expression: //p[1] -Object is a Node Set : -Set contains 5 nodes: -1 ELEMENT p -2 ELEMENT p -3 ELEMENT p -4 ELEMENT p -5 ELEMENT p diff --git a/libxml2/result/XPath/tests/chaptersprefol b/libxml2/result/XPath/tests/chaptersprefol deleted file mode 100644 index a12c937..0000000 --- a/libxml2/result/XPath/tests/chaptersprefol +++ /dev/null @@ -1,100 +0,0 @@ - -======================== -Expression: /following::* -Object is a Node Set : -Set contains 0 nodes: - -======================== -Expression: /preceding::* -Object is a Node Set : -Set contains 0 nodes: - -======================== -Expression: /child::EXAMPLE/preceding::* -Object is a Node Set : -Set contains 0 nodes: - -======================== -Expression: /child::EXAMPLE/following::* -Object is a Node Set : -Set contains 0 nodes: - -======================== -Expression: /child::EXAMPLE/child::chapter[3]/preceding::* -Object is a Node Set : -Set contains 10 nodes: -1 ELEMENT head -2 ELEMENT title -3 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter1 -4 ELEMENT title -5 ELEMENT p -6 ELEMENT image - ATTRIBUTE href - TEXT - content=linus.gif -7 ELEMENT p -8 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter2 -9 ELEMENT title -10 ELEMENT p - -======================== -Expression: /child::EXAMPLE/child::chapter[3]/following::* -Object is a Node Set : -Set contains 6 nodes: -1 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter4 -2 ELEMENT title -3 ELEMENT p -4 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter5 -5 ELEMENT title -6 ELEMENT p - -======================== -Expression: /child::EXAMPLE/child::chapter[1]/image/preceding::* -Object is a Node Set : -Set contains 4 nodes: -1 ELEMENT head -2 ELEMENT title -3 ELEMENT title -4 ELEMENT p - -======================== -Expression: /child::EXAMPLE/child::chapter[1]/image/following::* -Object is a Node Set : -Set contains 13 nodes: -1 ELEMENT p -2 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter2 -3 ELEMENT title -4 ELEMENT p -5 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter3 -6 ELEMENT title -7 ELEMENT p -8 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter4 -9 ELEMENT title -10 ELEMENT p -11 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter5 -12 ELEMENT title -13 ELEMENT p diff --git a/libxml2/result/XPath/tests/idsimple b/libxml2/result/XPath/tests/idsimple deleted file mode 100644 index 891b52e..0000000 --- a/libxml2/result/XPath/tests/idsimple +++ /dev/null @@ -1,33 +0,0 @@ - -======================== -Expression: //*[@id="root"] -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT EXAMPLE - ATTRIBUTE id - TEXT - content=root - ATTRIBUTE prop1 - TEXT - content=gnome is great - ATTRIBUTE prop2 - TEXT - content=& linux too - -======================== -Expression: //*[@id="chapter2"] -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter2 - -======================== -Expression: //*[@id="chapter5"] -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter5 diff --git a/libxml2/result/XPath/tests/langsimple b/libxml2/result/XPath/tests/langsimple deleted file mode 100644 index d8d7afd..0000000 --- a/libxml2/result/XPath/tests/langsimple +++ /dev/null @@ -1,60 +0,0 @@ - -======================== -Expression: //*[lang('en')] -Object is a Node Set : -Set contains 9 nodes: -1 ELEMENT b - ATTRIBUTE lang - TEXT - content=en -2 ELEMENT x -3 ELEMENT x -4 ELEMENT para - ATTRIBUTE lang - TEXT - content=en -5 ELEMENT div - ATTRIBUTE lang - TEXT - content=en -6 ELEMENT para -7 ELEMENT para - ATTRIBUTE lang - TEXT - content=EN -8 ELEMENT para - ATTRIBUTE lang - TEXT - content=en-us -9 ELEMENT para - ATTRIBUTE lang - TEXT - content=EN-US - -======================== -Expression: //*[lang('en-us')] -Object is a Node Set : -Set contains 2 nodes: -1 ELEMENT para - ATTRIBUTE lang - TEXT - content=en-us -2 ELEMENT para - ATTRIBUTE lang - TEXT - content=EN-US - -======================== -Expression: //*[lang('en-gb')] -Object is a Node Set : -Set contains 0 nodes: - -======================== -Expression: //*[lang('fr')] -Object is a Node Set : -Set contains 0 nodes: - -======================== -Expression: //*[lang('')] -Object is a Node Set : -Set contains 0 nodes: diff --git a/libxml2/result/XPath/tests/mixedpat b/libxml2/result/XPath/tests/mixedpat deleted file mode 100644 index 3be0c49..0000000 --- a/libxml2/result/XPath/tests/mixedpat +++ /dev/null @@ -1,101 +0,0 @@ - -======================== -Expression: s -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT s - ATTRIBUTE p - TEXT - content=root - -======================== -Expression: s|p1/s -Object is a Node Set : -Set contains 2 nodes: -1 ELEMENT s - ATTRIBUTE p - TEXT - content=root -2 ELEMENT s - ATTRIBUTE p - TEXT - content=p1 - -======================== -Expression: s|/root/p1/s -Object is a Node Set : -Set contains 2 nodes: -1 ELEMENT s - ATTRIBUTE p - TEXT - content=root -2 ELEMENT s - ATTRIBUTE p - TEXT - content=p1 - -======================== -Expression: /root/p1/s|s -Object is a Node Set : -Set contains 2 nodes: -1 ELEMENT s - ATTRIBUTE p - TEXT - content=root -2 ELEMENT s - ATTRIBUTE p - TEXT - content=p1 - -======================== -Expression: //s -Object is a Node Set : -Set contains 3 nodes: -1 ELEMENT s - ATTRIBUTE p - TEXT - content=root -2 ELEMENT s - ATTRIBUTE p - TEXT - content=p1 -3 ELEMENT s - ATTRIBUTE p - TEXT - content=p2 - -======================== -Expression: //s|p1 -Object is a Node Set : -Set contains 4 nodes: -1 ELEMENT s - ATTRIBUTE p - TEXT - content=root -2 ELEMENT p1 -3 ELEMENT s - ATTRIBUTE p - TEXT - content=p1 -4 ELEMENT s - ATTRIBUTE p - TEXT - content=p2 - -======================== -Expression: p1|//s -Object is a Node Set : -Set contains 4 nodes: -1 ELEMENT s - ATTRIBUTE p - TEXT - content=root -2 ELEMENT p1 -3 ELEMENT s - ATTRIBUTE p - TEXT - content=p1 -4 ELEMENT s - ATTRIBUTE p - TEXT - content=p2 diff --git a/libxml2/result/XPath/tests/nodespat b/libxml2/result/XPath/tests/nodespat deleted file mode 100644 index 1efd87f..0000000 --- a/libxml2/result/XPath/tests/nodespat +++ /dev/null @@ -1,94 +0,0 @@ - -======================== -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 diff --git a/libxml2/result/XPath/tests/nssimple b/libxml2/result/XPath/tests/nssimple deleted file mode 100644 index 8f0dd0e..0000000 --- a/libxml2/result/XPath/tests/nssimple +++ /dev/null @@ -1,24 +0,0 @@ - -======================== -Expression: /doc/elem/namespace::node()/.. -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT elem - namespace ns2 href=nsuri2 - -======================== -Expression: /doc/elem/namespace::*/self::node()[true()] -Object is a Node Set : -Set contains 3 nodes: -1 namespace xml href=http://www.w3.org/XML/1998/namespace -2 namespace ns1 href=nsuri1 -3 namespace ns2 href=nsuri2 - -======================== -Expression: //*[namespace::ns1] -Object is a Node Set : -Set contains 2 nodes: -1 ELEMENT doc - namespace ns1 href=nsuri1 -2 ELEMENT elem - namespace ns2 href=nsuri2 diff --git a/libxml2/result/XPath/tests/simpleabbr b/libxml2/result/XPath/tests/simpleabbr deleted file mode 100644 index 85da41a..0000000 --- a/libxml2/result/XPath/tests/simpleabbr +++ /dev/null @@ -1,81 +0,0 @@ - -======================== -Expression: /EXAMPLE -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT EXAMPLE - ATTRIBUTE prop1 - TEXT - content=gnome is great - ATTRIBUTE prop2 - TEXT - content=& linux too - -======================== -Expression: /EXAMPLE/head -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT head - -======================== -Expression: /EXAMPLE/chapter[1] -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT chapter - -======================== -Expression: //p -Object is a Node Set : -Set contains 2 nodes: -1 ELEMENT p -2 ELEMENT p - -======================== -Expression: //chapter/image -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT image - ATTRIBUTE href - TEXT - content=linus.gif - -======================== -Expression: //p/text() -Object is a Node Set : -Set contains 2 nodes: -1 TEXT - content=bla bla bla ... -2 TEXT - content=... - -======================== -Expression: //p/text()[position()=1] -Object is a Node Set : -Set contains 2 nodes: -1 TEXT - content=bla bla bla ... -2 TEXT - content=... - -======================== -Expression: //p/text()[position()=last()] -Object is a Node Set : -Set contains 2 nodes: -1 TEXT - content=bla bla bla ... -2 TEXT - content=... - -======================== -Expression: (//p/text())[position()=1] -Object is a Node Set : -Set contains 1 nodes: -1 TEXT - content=bla bla bla ... - -======================== -Expression: (//p/text())[position()=last()] -Object is a Node Set : -Set contains 1 nodes: -1 TEXT - content=... diff --git a/libxml2/result/XPath/tests/simplebase b/libxml2/result/XPath/tests/simplebase deleted file mode 100644 index 3c32d17..0000000 --- a/libxml2/result/XPath/tests/simplebase +++ /dev/null @@ -1,127 +0,0 @@ - -======================== -Expression: /child::* -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT EXAMPLE - ATTRIBUTE prop1 - TEXT - content=gnome is great - ATTRIBUTE prop2 - TEXT - content=& linux too - -======================== -Expression: /child::EXAMPLE -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT EXAMPLE - ATTRIBUTE prop1 - TEXT - content=gnome is great - ATTRIBUTE prop2 - TEXT - content=& linux too - -======================== -Expression: /child::EXAMPLE/child::head -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT head - -======================== -Expression: /child::EXAMPLE/child::* -Object is a Node Set : -Set contains 2 nodes: -1 ELEMENT head -2 ELEMENT chapter - -======================== -Expression: /child::EXAMPLE/child::head/child::title -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT title - -======================== -Expression: /child::EXAMPLE/child::head/child::title/child::text() -Object is a Node Set : -Set contains 1 nodes: -1 TEXT - content=Welcome to Gnome - -======================== -Expression: /child::EXAMPLE/child::head/node() -Object is a Node Set : -Set contains 3 nodes: -1 TEXT - content= -2 ELEMENT title -3 TEXT - content= - -======================== -Expression: /child::EXAMPLE/attribute::prop1/self::node() -Object is a Node Set : -Set contains 1 nodes: -1 ATTRIBUTE prop1 - TEXT - content=gnome is great - -======================== -Expression: /child::EXAMPLE/attribute::prop1/self::* -Object is a Node Set : -Set contains 0 nodes: - -======================== -Expression: /child::EXAMPLE/attribute::prop1/descendant-or-self::node() -Object is a Node Set : -Set contains 1 nodes: -1 ATTRIBUTE prop1 - TEXT - content=gnome is great - -======================== -Expression: /child::EXAMPLE/attribute::prop1/descendant-or-self::* -Object is a Node Set : -Set contains 0 nodes: - -======================== -Expression: /child::EXAMPLE/attribute::prop1/ancestor-or-self::node() -Object is a Node Set : -Set contains 3 nodes: -1 / -2 ELEMENT EXAMPLE - ATTRIBUTE prop1 - TEXT - content=gnome is great - ATTRIBUTE prop2 - TEXT - content=& linux too -3 ATTRIBUTE prop1 - TEXT - content=gnome is great - -======================== -Expression: /child::EXAMPLE/attribute::prop1/ancestor-or-self::* -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT EXAMPLE - ATTRIBUTE prop1 - TEXT - content=gnome is great - ATTRIBUTE prop2 - TEXT - content=& linux too - -======================== -Expression: /descendant::title -Object is a Node Set : -Set contains 2 nodes: -1 ELEMENT title -2 ELEMENT title - -======================== -Expression: /descendant::p/ancestor::chapter -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT chapter diff --git a/libxml2/result/XPath/tests/usr1check b/libxml2/result/XPath/tests/usr1check deleted file mode 100644 index 0308991..0000000 --- a/libxml2/result/XPath/tests/usr1check +++ /dev/null @@ -1,12 +0,0 @@ - -======================== -Expression: //ITEM[1] -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT ITEM - ATTRIBUTE monto - TEXT - content=50.12 - ATTRIBUTE divisa - TEXT - content=DOL diff --git a/libxml2/result/XPath/tests/vidbase b/libxml2/result/XPath/tests/vidbase deleted file mode 100644 index 3c7b62f..0000000 --- a/libxml2/result/XPath/tests/vidbase +++ /dev/null @@ -1,42 +0,0 @@ - -======================== -Expression: id('chapter1') -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter1 - -======================== -Expression: id('chapter3') -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT chapter - ATTRIBUTE id - TEXT - content=chapter3 - -======================== -Expression: id('chapter1')/p -Object is a Node Set : -Set contains 4 nodes: -1 ELEMENT p -2 ELEMENT p -3 ELEMENT p -4 ELEMENT p - -======================== -Expression: id('chapter1')//p -Object is a Node Set : -Set contains 4 nodes: -1 ELEMENT p -2 ELEMENT p -3 ELEMENT p -4 ELEMENT p - -======================== -Expression: id('chapter1')/p[1] -Object is a Node Set : -Set contains 1 nodes: -1 ELEMENT p |