Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / xsl / mozilla-tests-expected.txt
1 Mozilla XSLT
2 TransforMiiX Test Cases
3 This document serves to test basic XSL expressions.
4
5 Testing xsl:variable and xsl:copy-of
6 Test: <xsl:copy-of select="$product-name"/>
7 Desired Result:TransforMiiX
8 Result: TransforMiiX
9
10 Testing xsl:if
11 Test: <xsl:if test="x | y | z">true</xsl:if>
12 Desired Result: true
13 Result:true
14
15 Testing xsl:if
16 Test: <xsl:if test="true()">true</xsl:if>
17 Desired Result: true
18 Result:true
19
20 Testing xsl:if
21 Test: <xsl:if test="'a'='b'">a equals b</xsl:if>
22 <xsl:if test="'a'!='b'">a does not equal b</xsl:if> 
23 Desired Result: a does not equal to b
24 Result:a does not equal b
25
26 Testing xsl:if
27 Test: <xsl:if test="2+1-3"> 2+1-3 is true</xsl:if>
28  <xsl:if test="not(2+1-3)"> not(2+1-3) is true</xsl:if>
29 Desired Result:not(2+1-3) is true 
30 Result:not(2+1-3) is true
31
32 Testing xsl:choose
33 Test:see source
34 Desired Result: true
35 Result:true
36
37 Testing parent and ancestor ops
38 Test:see source
39 Desired Result: true
40 Result:true
41 Testing basic xsl:apply-templates
42 Test:<xsl:apply-templates/>
43 Desired Result:element x, element y, element z
44 Result: element x, element y, element z
45
46 Testing basic xsl:apply-templates with mode
47 Test:<xsl:apply-templates mode="mode-test"/>
48 Desired Result:x, y, z
49 Result:x, y, z
50
51 Testing predicates
52 Test:see source
53 Desired Result:z
54 Result:z
55
56 Testing predicates
57 Test:see source
58 Desired Result:
59 Result:
60
61 Named Template/Call Template
62
63 Test:<xsl:call-template name="named-template-test"/>
64 Desired Result:named template processed with default value!
65 Result: named template processed with default value!
66
67 Test: - passing arguments to named templates (see xsl source)
68 Desired Result:named template processed with passed value!
69 Result: named template processed with passed value!
70
71 Attribute Value Templates and variables
72 Test:
73
74 <xsl:variable name="color">red</xsl:variable>
75 <FONT COLOR="{$color}">Red Text</FONT>
76 Desired Result:Red Text
77 Result:Red Text
78 Axis Identifiers (these should work, I need more test cases though)
79 Test:   <xsl:if test="descendant::z">true</xsl:if>
80 Desired Result: true
81 Result: true
82 Test:   <xsl:if test="not(descendant-or-self::no-element)">true</xsl:if>
83 Desired Result: true
84 Result: true
85 Test:   <xsl:value-of select="count(x/attribute::*)"/>
86 Desired Result: 1
87 Result: 1
88 Creating Elements with xsl:element and xsl:attribute
89 Test:   <xsl:element name="FONT">
90 <xsl:attribute name="COLOR">blue</xsl:attribute> 
91 Passed 
92 </xsl:element>
93 Desired Result: Passed
94 Result: Passed
95 Using Attribute Sets
96 Test:   <FONT xsl:use-attribute-sets="style1">
97 Passed 
98 </FONT>
99 Desired Result: Passed
100 Result: Passed
101 Test:   <xsl:element name="FONT" use-attribute-sets="style1 style2">
102 Passed 
103 </xsl:element>
104 Desired Result: Passed
105 Result: Passed
106 Numbering (only simple numbering currently implemented)
107 Test:   <xsl:number value="4"/>
108 Desired Result: 4
109 Result: 4
110 Test:   see source
111 Desired Result: 1. x 
112 1. y
113 1. z 
114 Result: 1. x
115 1. y
116 1. z
117 Additive Expressions
118 Test:   <xsl:value-of select="70+4"/>
119 Desired Result: 74
120 Result: 74
121 Test:   <xsl:value-of select="-70+4"/>
122 Desired Result: -66
123 Result: -66
124 Test:   <xsl:value-of select="1900+70+8-4"/>
125 Desired Result: 1974
126 Result: 1974
127 Test:   <xsl:value-of select="(4+5)-(9+9)"/>
128 Desired Result: -9
129 Result: -9
130 Multiplicative Expressions
131 Test:   <xsl:value-of select="7*4"/>
132 Desired Result: 28
133 Result: 28
134 Test:   <xsl:value-of select="7mod 4"/>
135 Desired Result: 3
136 Result: 3
137 Test:   <xsl:value-of select="7div 4"/>
138 Desired Result: 1.75
139 Result: 1.75
140 Test:   <xsl:value-of select="7div 0"/>
141 Desired Result: Infinity
142 Result: Infinity
143 Test:   <xsl:value-of select="0 div 0"/>
144 Desired Result: NaN
145 Result: NaN
146 Test:   <xsl:variable name="x" select="7*3"/>
147 <xsl:variable name="y" select="3"/>
148 <xsl:value-of select="$x div $y"/>
149 Desired Result: 7
150 Result: 7
151 Precedence tests
152 Test:   <xsl:value-of select="2 mod 2 = 0"/>
153 Desired Result: true
154 Result: true
155 Test:   <xsl:value-of select="5 mod 2 < 5 and 2*6 >= 12"/>
156 Desired Result: true
157 Result: true
158 Test:   <xsl:value-of select="5 mod 2 < 5 and 2*6>12"/>
159 Desired Result: false
160 Result: false
161 Test:   <xsl:value-of select="4+5*3"/>
162 Desired Result: 19
163 Result: 19
164 Test:   <xsl:value-of select="4+5*3+(6-4)*7"/>
165 Desired Result: 33
166 Result: 33
167 Automatic Result Type Conversion
168 Test:   <xsl:value-of select="'747' + 8"/>
169 Desired Result: 755
170 Result: 755