OLD | NEW |
1 Test creation of each type of Node and check intial values | 1 Test creation of each type of Node and check intial values |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 Attribute creation using createElement on an HTML doc: | 6 Attribute creation using createElement on an HTML doc: |
7 PASS attr.nodeName is 'foo' | 7 PASS attr.nodeName is 'foo' |
8 PASS attr.name is 'foo' | 8 PASS attr.name is 'foo' |
9 FAIL attr.localName should be null (of type object). Was foo (of type string). | 9 FAIL attr.localName should be null (of type object). Was foo (of type string). |
10 PASS attr.namespaceURI is null | 10 PASS attr.namespaceURI is null |
(...skipping 20 matching lines...) Expand all Loading... |
31 PASS attr.nodeName is 'example:foo' | 31 PASS attr.nodeName is 'example:foo' |
32 PASS attr.name is 'example:foo' | 32 PASS attr.name is 'example:foo' |
33 PASS attr.localName is 'foo' | 33 PASS attr.localName is 'foo' |
34 PASS attr.namespaceURI is 'http://www.example.com' | 34 PASS attr.namespaceURI is 'http://www.example.com' |
35 PASS attr.prefix is 'example' | 35 PASS attr.prefix is 'example' |
36 PASS attr.nodeValue is '' | 36 PASS attr.nodeValue is '' |
37 PASS attr.value is '' | 37 PASS attr.value is '' |
38 PASS comment.nodeName is '#comment' | 38 PASS comment.nodeName is '#comment' |
39 PASS comment.localName is null | 39 PASS comment.localName is null |
40 PASS comment.namespaceURI is null | 40 PASS comment.namespaceURI is null |
41 PASS comment.prefix is null | |
42 PASS comment.nodeValue is 'foo' | 41 PASS comment.nodeValue is 'foo' |
43 PASS comment.data is 'foo' | 42 PASS comment.data is 'foo' |
44 PASS document.createCDATASection('foo') threw exception NotSupportedError: Faile
d to execute 'createCDATASection' on 'Document': This operation is not supported
for HTML documents.. | 43 PASS document.createCDATASection('foo') threw exception NotSupportedError: Faile
d to execute 'createCDATASection' on 'Document': This operation is not supported
for HTML documents.. |
45 PASS cdata.nodeName is '#cdata-section' | 44 PASS cdata.nodeName is '#cdata-section' |
46 PASS cdata.localName is null | 45 PASS cdata.localName is null |
47 PASS cdata.namespaceURI is null | 46 PASS cdata.namespaceURI is null |
48 PASS cdata.prefix is null | |
49 PASS cdata.nodeValue is 'foo' | 47 PASS cdata.nodeValue is 'foo' |
50 PASS cdata.data is 'foo' | 48 PASS cdata.data is 'foo' |
51 PASS fragment.nodeName is '#document-fragment' | 49 PASS fragment.nodeName is '#document-fragment' |
52 PASS fragment.localName is null | 50 PASS fragment.localName is null |
53 PASS fragment.namespaceURI is null | 51 PASS fragment.namespaceURI is null |
54 PASS fragment.prefix is null | |
55 PASS fragment.nodeValue is null | 52 PASS fragment.nodeValue is null |
56 PASS doc.nodeName is '#document' | 53 PASS doc.nodeName is '#document' |
57 PASS doc.localName is null | 54 PASS doc.localName is null |
58 FAIL doc.namespaceURI should be http://www.w3.org/1999/xhtml (of type string). W
as null (of type object). | 55 FAIL doc.namespaceURI should be http://www.w3.org/1999/xhtml (of type string). W
as null (of type object). |
59 PASS doc.prefix is null | |
60 PASS doc.nodeValue is null | 56 PASS doc.nodeValue is null |
61 PASS doctype.nodeName is 'svg' | 57 PASS doctype.nodeName is 'svg' |
62 PASS doctype.name is 'svg' | 58 PASS doctype.name is 'svg' |
63 PASS doctype.localName is null | 59 PASS doctype.localName is null |
64 PASS doctype.namespaceURI is null | 60 PASS doctype.namespaceURI is null |
65 PASS doctype.prefix is null | |
66 PASS doctype.nodeValue is null | 61 PASS doctype.nodeValue is null |
67 Element creation using createElement on an HTML doc: | 62 Element creation using createElement on an HTML doc: |
68 PASS element.nodeName is 'PRE' | 63 PASS element.nodeName is 'PRE' |
69 FAIL element.localName should be null (of type object). Was pre (of type string)
. | 64 FAIL element.localName should be null (of type object). Was pre (of type string)
. |
70 FAIL element.namespaceURI should be null (of type object). Was http://www.w3.org
/1999/xhtml (of type string). | 65 FAIL element.namespaceURI should be null (of type object). Was http://www.w3.org
/1999/xhtml (of type string). |
71 PASS element.prefix is null | 66 PASS element.prefix is null |
72 PASS element.nodeValue is null | 67 PASS element.nodeValue is null |
73 PASS element.attributes.toString() is '[object NamedNodeMap]' | 68 PASS element.attributes.toString() is '[object NamedNodeMap]' |
74 Prefixed element creation using createElementNS on an HTML doc: | 69 Prefixed element creation using createElementNS on an HTML doc: |
75 PASS element.nodeName is 'html:pre' | 70 PASS element.nodeName is 'html:pre' |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 PASS element.nodeName is 'html:pre' | 105 PASS element.nodeName is 'html:pre' |
111 PASS element.localName is 'pre' | 106 PASS element.localName is 'pre' |
112 PASS element.namespaceURI is 'http://www.w3.org/1999/xhtml' | 107 PASS element.namespaceURI is 'http://www.w3.org/1999/xhtml' |
113 PASS element.prefix is 'html' | 108 PASS element.prefix is 'html' |
114 PASS element.nodeValue is null | 109 PASS element.nodeValue is null |
115 PASS element.attributes.toString() is '[object NamedNodeMap]' | 110 PASS element.attributes.toString() is '[object NamedNodeMap]' |
116 Processing instruction creation using createProcessingInstruction on an HTML doc
: | 111 Processing instruction creation using createProcessingInstruction on an HTML doc
: |
117 PASS processingInstruction.nodeName is 'xml-stylesheet' | 112 PASS processingInstruction.nodeName is 'xml-stylesheet' |
118 PASS processingInstruction.localName is null | 113 PASS processingInstruction.localName is null |
119 PASS processingInstruction.namespaceURI is null | 114 PASS processingInstruction.namespaceURI is null |
120 PASS processingInstruction.prefix is null | |
121 PASS processingInstruction.nodeValue is 'type="text/xsl" href="missing.xsl"' | 115 PASS processingInstruction.nodeValue is 'type="text/xsl" href="missing.xsl"' |
122 PASS processingInstruction.target is 'xml-stylesheet' | 116 PASS processingInstruction.target is 'xml-stylesheet' |
123 PASS processingInstruction.data is 'type="text/xsl" href="missing.xsl"' | 117 PASS processingInstruction.data is 'type="text/xsl" href="missing.xsl"' |
124 Processing instruction creation using createProcessingInstruction on an XHTML do
c: | 118 Processing instruction creation using createProcessingInstruction on an XHTML do
c: |
125 PASS processingInstruction.nodeName is 'xml-stylesheet' | 119 PASS processingInstruction.nodeName is 'xml-stylesheet' |
126 PASS processingInstruction.localName is null | 120 PASS processingInstruction.localName is null |
127 PASS processingInstruction.namespaceURI is null | 121 PASS processingInstruction.namespaceURI is null |
128 PASS processingInstruction.prefix is null | |
129 PASS processingInstruction.nodeValue is 'type="text/xsl" href="missing.xsl"' | 122 PASS processingInstruction.nodeValue is 'type="text/xsl" href="missing.xsl"' |
130 PASS processingInstruction.target is 'xml-stylesheet' | 123 PASS processingInstruction.target is 'xml-stylesheet' |
131 PASS processingInstruction.data is 'type="text/xsl" href="missing.xsl"' | 124 PASS processingInstruction.data is 'type="text/xsl" href="missing.xsl"' |
132 Text node creation using createTextNode on an HTML doc: | 125 Text node creation using createTextNode on an HTML doc: |
133 PASS text.nodeName is '#text' | 126 PASS text.nodeName is '#text' |
134 PASS text.localName is null | 127 PASS text.localName is null |
135 PASS text.namespaceURI is null | 128 PASS text.namespaceURI is null |
136 PASS text.prefix is null | |
137 PASS text.nodeValue is 'foo' | 129 PASS text.nodeValue is 'foo' |
138 PASS text.data is 'foo' | 130 PASS text.data is 'foo' |
139 PASS successfullyParsed is true | 131 PASS successfullyParsed is true |
140 | 132 |
141 TEST COMPLETE | 133 TEST COMPLETE |
142 | 134 |
OLD | NEW |