Upstream version 7.36.149.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.value is ''
13 Attribute creation using createElement on an XHTML doc:
14 PASS attr.nodeName is 'foo'
15 PASS attr.name is 'foo'
16 FAIL attr.localName should be null (of type object). Was foo (of type string).
17 PASS attr.namespaceURI is null
18 PASS attr.prefix is null
19 PASS attr.value is ''
20 PASS comment.nodeName is '#comment'
21 PASS comment.localName is null
22 PASS comment.namespaceURI is null
23 PASS comment.nodeValue is 'foo'
24 PASS comment.data is 'foo'
25 PASS document.createCDATASection('foo') threw exception NotSupportedError: Failed to execute 'createCDATASection' on 'Document': This operation is not supported for HTML documents..
26 PASS cdata.nodeName is '#cdata-section'
27 PASS cdata.localName is null
28 PASS cdata.namespaceURI is null
29 PASS cdata.nodeValue is 'foo'
30 PASS cdata.data is 'foo'
31 PASS fragment.nodeName is '#document-fragment'
32 PASS fragment.localName is null
33 PASS fragment.namespaceURI is null
34 PASS fragment.nodeValue is null
35 PASS doc.nodeName is '#document'
36 PASS doc.localName is null
37 FAIL doc.namespaceURI should be http://www.w3.org/1999/xhtml (of type string). Was null (of type object).
38 PASS doc.nodeValue is null
39 PASS doctype.nodeName is 'svg'
40 PASS doctype.name is 'svg'
41 PASS doctype.localName is null
42 PASS doctype.namespaceURI is null
43 PASS doctype.nodeValue is null
44 Element creation using createElement on an HTML doc:
45 PASS element.nodeName is 'PRE'
46 FAIL element.localName should be null (of type object). Was pre (of type string).
47 FAIL element.namespaceURI should be null (of type object). Was http://www.w3.org/1999/xhtml (of type string).
48 PASS element.prefix is null
49 PASS element.nodeValue is null
50 PASS element.attributes.toString() is '[object NamedNodeMap]'
51 Prefixed element creation using createElementNS on an HTML doc:
52 PASS element.nodeName is 'HTML:PRE'
53 PASS element.localName is 'pre'
54 PASS element.namespaceURI is 'http://www.w3.org/1999/xhtml'
55 PASS element.prefix is 'html'
56 PASS element.nodeValue is null
57 PASS element.attributes.toString() is '[object NamedNodeMap]'
58 SVG Element creation using createElementNS on an HTML doc:
59 PASS element.nodeName is 'svg'
60 PASS element.localName is 'svg'
61 PASS element.namespaceURI is 'http://www.w3.org/2000/svg'
62 PASS element.prefix is null
63 PASS element.nodeValue is null
64 PASS element.attributes.toString() is '[object NamedNodeMap]'
65 Unknown Element creation using createElementNS on an HTML doc:
66 PASS element.nodeName is 'foo:svg'
67 PASS element.localName is 'svg'
68 PASS element.namespaceURI is 'http://www.webkit.org'
69 PASS element.prefix is 'foo'
70 PASS element.nodeValue is null
71 PASS element.attributes.toString() is '[object NamedNodeMap]'
72 Element creation using createElementNS on an HTML doc:
73 FAIL element.nodeName should be pre. Was PRE.
74 PASS element.localName is 'pre'
75 PASS element.namespaceURI is 'http://www.w3.org/1999/xhtml'
76 PASS element.prefix is null
77 PASS element.nodeValue is null
78 PASS element.attributes.toString() is '[object NamedNodeMap]'
79 Element creation using createElement on an XHTML doc:
80 PASS element.nodeName is 'pre'
81 FAIL element.localName should be null (of type object). Was pre (of type string).
82 FAIL element.namespaceURI should be null (of type object). Was http://www.w3.org/1999/xhtml (of type string).
83 PASS element.prefix is null
84 PASS element.nodeValue is null
85 PASS element.attributes.toString() is '[object NamedNodeMap]'
86 Element creation using createElementNS on an XHTML doc:
87 PASS element.nodeName is 'html:pre'
88 PASS element.localName is 'pre'
89 PASS element.namespaceURI is 'http://www.w3.org/1999/xhtml'
90 PASS element.prefix is 'html'
91 PASS element.nodeValue is null
92 PASS element.attributes.toString() is '[object NamedNodeMap]'
93 Processing instruction creation using createProcessingInstruction on an HTML doc:
94 PASS processingInstruction.nodeName is 'xml-stylesheet'
95 PASS processingInstruction.localName is null
96 PASS processingInstruction.namespaceURI is null
97 PASS processingInstruction.nodeValue is 'type="text/xsl" href="missing.xsl"'
98 PASS processingInstruction.target is 'xml-stylesheet'
99 PASS processingInstruction.data is 'type="text/xsl" href="missing.xsl"'
100 Processing instruction creation using createProcessingInstruction on an XHTML doc:
101 PASS processingInstruction.nodeName is 'xml-stylesheet'
102 PASS processingInstruction.localName is null
103 PASS processingInstruction.namespaceURI is null
104 PASS processingInstruction.nodeValue is 'type="text/xsl" href="missing.xsl"'
105 PASS processingInstruction.target is 'xml-stylesheet'
106 PASS processingInstruction.data is 'type="text/xsl" href="missing.xsl"'
107 Text node creation using createTextNode on an HTML doc:
108 PASS text.nodeName is '#text'
109 PASS text.localName is null
110 PASS text.namespaceURI is null
111 PASS text.nodeValue is 'foo'
112 PASS text.data is 'foo'
113 PASS successfullyParsed is true
114
115 TEST COMPLETE
116