OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <title>Node assorted property tests</title> | 2 <title>Node assorted property tests</title> |
3 <link rel=author title="Aryeh Gregor" href=ayg@aryeh.name> | 3 <link rel=author title="Aryeh Gregor" href=ayg@aryeh.name> |
4 <meta charset=utf-8> | 4 <meta charset=utf-8> |
5 <div id=log></div> | 5 <div id=log></div> |
6 <script src=/resources/testharness.js></script> | 6 <script src=/resources/testharness.js></script> |
7 <script src=/resources/testharnessreport.js></script> | 7 <script src=/resources/testharnessreport.js></script> |
8 <script src=../common.js></script> | 8 <script src=../common.js></script> |
9 <script> | 9 <script> |
10 "use strict"; | 10 "use strict"; |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 ownerDocument: xmlDoc, | 219 ownerDocument: xmlDoc, |
220 parentNode: xmlDoc, | 220 parentNode: xmlDoc, |
221 parentElement: null, | 221 parentElement: null, |
222 "childNodes.length": 1, | 222 "childNodes.length": 1, |
223 "childNodes[0]": xmlTextNode, | 223 "childNodes[0]": xmlTextNode, |
224 previousSibling: xmlDoctype, | 224 previousSibling: xmlDoctype, |
225 nextSibling: processingInstruction, | 225 nextSibling: processingInstruction, |
226 textContent: "do re mi fa so la ti", | 226 textContent: "do re mi fa so la ti", |
227 | 227 |
228 // Element | 228 // Element |
229 namespaceURI: "http://www.w3.org/1999/xhtml", | 229 namespaceURI: null, |
230 prefix: null, | 230 prefix: null, |
231 localName: "igiveuponcreativenames", | 231 localName: "igiveuponcreativenames", |
232 tagName: "igiveuponcreativenames", | 232 tagName: "igiveuponcreativenames", |
233 previousElementSibling: null, | 233 previousElementSibling: null, |
234 nextElementSibling: null, | 234 nextElementSibling: null, |
235 childElementCount: 0, | 235 childElementCount: 0, |
236 }, | 236 }, |
237 detachedXmlElement: { | 237 detachedXmlElement: { |
238 // Node | 238 // Node |
239 nodeType: Node.ELEMENT_NODE, | 239 nodeType: Node.ELEMENT_NODE, |
240 ownerDocument: xmlDoc, | 240 ownerDocument: xmlDoc, |
241 parentNode: null, | 241 parentNode: null, |
242 parentElement: null, | 242 parentElement: null, |
243 "childNodes.length": 0, | 243 "childNodes.length": 0, |
244 previousSibling: null, | 244 previousSibling: null, |
245 nextSibling: null, | 245 nextSibling: null, |
246 textContent: "", | 246 textContent: "", |
247 | 247 |
248 // Element | 248 // Element |
249 namespaceURI: "http://www.w3.org/1999/xhtml", | 249 namespaceURI: null, |
250 prefix: null, | 250 prefix: null, |
251 localName: "everyone-hates-hyphenated-element-names", | 251 localName: "everyone-hates-hyphenated-element-names", |
252 tagName: "everyone-hates-hyphenated-element-names", | 252 tagName: "everyone-hates-hyphenated-element-names", |
253 previousElementSibling: null, | 253 previousElementSibling: null, |
254 nextElementSibling: null, | 254 nextElementSibling: null, |
255 childElementCount: 0, | 255 childElementCount: 0, |
256 }, | 256 }, |
257 detachedTextNode: { | 257 detachedTextNode: { |
258 // Node | 258 // Node |
259 nodeType: Node.TEXT_NODE, | 259 nodeType: Node.TEXT_NODE, |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 // Finally, we test! | 679 // Finally, we test! |
680 for (var prop in expected[node]) { | 680 for (var prop in expected[node]) { |
681 test(function() { | 681 test(function() { |
682 assert_equals(eval(node + "." + prop), expected[node][prop]); | 682 assert_equals(eval(node + "." + prop), expected[node][prop]); |
683 }, node + "." + prop); | 683 }, node + "." + prop); |
684 } | 684 } |
685 } | 685 } |
686 | 686 |
687 testDiv.parentNode.removeChild(testDiv); | 687 testDiv.parentNode.removeChild(testDiv); |
688 </script> | 688 </script> |
OLD | NEW |