summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/xpath/py-dom-xpath/functions-expected.txt
blob: b70f5668085631c671481c64c347bc4a006dfdf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
PASS //item[@id=last()]
PASS //item[position()=3]
PASS count(//item)
FAIL id("c") incorrect length (expected 1, actual 0)
FAIL id(//reference) incorrect length (expected 3, actual 0)
PASS local-name(//self::node()[@id=7])
PASS number(//self::node()[@id=7]/attribute::*[local-name()="value"])
PASS local-name(/absent)
PASS namespace-uri(//self::node()[@id>5])
PASS //self::node()[@id and namespace-uri()="http://www.example.com/b"]
PASS namespace-uri(/absent)
PASS name(//self::node()[@id=7])
PASS //self::node()[name()="b:item"]
PASS name(/absent)
PASS string(//para)
PASS string(//inconceivable)
PASS string(0 div 0)
PASS string(1 div 0)
PASS string(-1 div 0)
PASS string(2.5 * 2)
PASS string(1 div -2)
PASS string(1 = 2)
PASS string("string")
PASS //para[string()="Two"]
PASS concat(//para, ":", //para[2])
PASS starts-with("foo-bar", "foo")
PASS starts-with("foo-bar", "bar")
PASS contains("foo-bar", "o-b")
PASS contains("foo-bar", "b-o")
PASS substring-before("foo::bar", "::")
PASS substring-before("foo::bar", "--")
PASS substring-after("foo::bar", "::")
PASS substring-after("foo::bar", "--")
PASS substring("12345", 2)
PASS substring("12345", 2, 3)
PASS substring("12345", 1.5, 2.6)
PASS substring("12345", 0, 3)
PASS substring("12345", 0 div 0, 3)
PASS substring("12345", 1, 0 div 0)
PASS substring("12345", -42, 1 div 0)
PASS substring("12345", -1 div 0, 1 div 0)
PASS substring("12345", 6, 1)
PASS substring("12345", 1, 0)
PASS string-length("12345")
PASS //para[string-length()=5]
PASS normalize-space("   one   two   ")
PASS //para[normalize-space() = "Four"]
PASS translate("abcdef", "abcde", "xyz")
PASS boolean(1)
PASS boolean(0)
PASS boolean(0 div 0)
PASS boolean(cod)
PASS boolean(doc)
PASS boolean("")
PASS boolean("foo")
PASS not(1 = 1)
PASS true()
PASS false()
PASS //*[lang("en")]
PASS //*[lang("EN-US")]
PASS normalize-space((//text()[lang("jp")])[normalize-space()])
PASS string(number("-1e5"))
PASS number(true())
PASS number(false())
PASS number(//item)
PASS string(//item[number()=4 div 2])
PASS sum(//item)
PASS floor(1.99)
PASS floor(-1.99)
PASS ceiling(1.99)
PASS ceiling(-1.99)
PASS round(1.5)
PASS round(-1.5)
PASS string(round(0 div 0))
PASS round(1 div 0)
PASS round(-1 div 0)
PASS number(".1")
PASS number("1.")
PASS string(number(".1."))
PASS string(number("..1"))
PASS string(number("1.."))
PASS string(number(".-1"))
PASS successfullyParsed is true

TEST COMPLETE