Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / Node / initial-values-expected.txt
1 Test creation of each type of Node and check intial values
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 Attribute creation using createElement on an HTML doc:
7 PASS attr.nodeName is 'foo'
8 PASS attr.name is 'foo'
9 FAIL attr.localName should be null (of type object). Was foo (of type string).
10 PASS attr.namespaceURI is null
11 PASS attr.prefix is null
12 PASS attr.nodeValue is ''
13 PASS attr.value is ''
14 Attribute creation using createElement on an XHTML doc:
15 PASS attr.nodeName is 'foo'
16 PASS attr.name is 'foo'
17 FAIL attr.localName should be null (of type object). Was foo (of type string).
18 PASS attr.namespaceURI is null
19 PASS attr.prefix is null
20 PASS attr.nodeValue is ''
21 PASS attr.value is ''
22 PASS comment.nodeName is '#comment'
23 PASS comment.localName is null
24 PASS comment.namespaceURI is null
25 PASS comment.nodeValue is 'foo'
26 PASS comment.data is 'foo'
27 PASS document.createCDATASection('foo') threw exception NotSupportedError: Failed to execute 'createCDATASection' on 'Document': This operation is not supported for HTML documents..
28 PASS cdata.nodeName is '#cdata-section'
29 PASS cdata.localName is null
30 PASS cdata.namespaceURI is null
31 PASS cdata.nodeValue is 'foo'
32 PASS cdata.data is 'foo'
33 PASS fragment.nodeName is '#document-fragment'
34 PASS fragment.localName is null
35 PASS fragment.namespaceURI is null
36 PASS fragment.nodeValue is null
37 PASS doc.nodeName is '#document'
38 PASS doc.localName is null
39 FAIL doc.namespaceURI should be http://www.w3.org/1999/xhtml (of type string). Was null (of type object).
40 PASS doc.nodeValue is null
41 PASS doctype.nodeName is 'svg'
42 PASS doctype.name is 'svg'
43 PASS doctype.localName is null
44 PASS doctype.namespaceURI is null
45 PASS doctype.nodeValue is null
46 Element creation using createElement on an HTML doc:
47 PASS element.nodeName is 'PRE'
48 FAIL element.localName should be null (of type object). Was pre (of type string).
49 FAIL element.namespaceURI should be null (of type object). Was http://www.w3.org/1999/xhtml (of type string).
50 PASS element.prefix is null
51 PASS element.nodeValue is null
52 PASS element.attributes.toString() is '[object NamedNodeMap]'
53 Prefixed element creation using createElementNS on an HTML doc:
54 PASS element.nodeName is 'html:pre'
55 PASS element.localName is 'pre'
56 PASS element.namespaceURI is 'http://www.w3.org/1999/xhtml'
57 PASS element.prefix is 'html'
58 PASS element.nodeValue is null
59 PASS element.attributes.toString() is '[object NamedNodeMap]'
60 SVG Element creation using createElementNS on an HTML doc:
61 PASS element.nodeName is 'svg'
62 PASS element.localName is 'svg'
63 PASS element.namespaceURI is 'http://www.w3.org/2000/svg'
64 PASS element.prefix is null
65 PASS element.nodeValue is null
66 PASS element.attributes.toString() is '[object NamedNodeMap]'
67 Unknown Element creation using createElementNS on an HTML doc:
68 PASS element.nodeName is 'foo:svg'
69 PASS element.localName is 'svg'
70 PASS element.namespaceURI is 'http://www.webkit.org'
71 PASS element.prefix is 'foo'
72 PASS element.nodeValue is null
73 PASS element.attributes.toString() is '[object NamedNodeMap]'
74 Element creation using createElementNS on an HTML doc:
75 FAIL element.nodeName should be pre. Was PRE.
76 PASS element.localName is 'pre'
77 PASS element.namespaceURI is 'http://www.w3.org/1999/xhtml'
78 PASS element.prefix is null
79 PASS element.nodeValue is null
80 PASS element.attributes.toString() is '[object NamedNodeMap]'
81 Element creation using createElement on an XHTML doc:
82 PASS element.nodeName is 'pre'
83 FAIL element.localName should be null (of type object). Was pre (of type string).
84 FAIL element.namespaceURI should be null (of type object). Was http://www.w3.org/1999/xhtml (of type string).
85 PASS element.prefix is null
86 PASS element.nodeValue is null
87 PASS element.attributes.toString() is '[object NamedNodeMap]'
88 Element creation using createElementNS on an XHTML doc:
89 PASS element.nodeName is 'html:pre'
90 PASS element.localName is 'pre'
91 PASS element.namespaceURI is 'http://www.w3.org/1999/xhtml'
92 PASS element.prefix is 'html'
93 PASS element.nodeValue is null
94 PASS element.attributes.toString() is '[object NamedNodeMap]'
95 Processing instruction creation using createProcessingInstruction on an HTML doc:
96 PASS processingInstruction.nodeName is 'xml-stylesheet'
97 PASS processingInstruction.localName is null
98 PASS processingInstruction.namespaceURI is null
99 PASS processingInstruction.nodeValue is 'type="text/xsl" href="missing.xsl"'
100 PASS processingInstruction.target is 'xml-stylesheet'
101 PASS processingInstruction.data is 'type="text/xsl" href="missing.xsl"'
102 Processing instruction creation using createProcessingInstruction on an XHTML doc:
103 PASS processingInstruction.nodeName is 'xml-stylesheet'
104 PASS processingInstruction.localName is null
105 PASS processingInstruction.namespaceURI is null
106 PASS processingInstruction.nodeValue is 'type="text/xsl" href="missing.xsl"'
107 PASS processingInstruction.target is 'xml-stylesheet'
108 PASS processingInstruction.data is 'type="text/xsl" href="missing.xsl"'
109 Text node creation using createTextNode on an HTML doc:
110 PASS text.nodeName is '#text'
111 PASS text.localName is null
112 PASS text.namespaceURI is null
113 PASS text.nodeValue is 'foo'
114 PASS text.data is 'foo'
115 PASS successfullyParsed is true
116
117 TEST COMPLETE
118