| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>Node.nodeValue</title> | 3 <title>Node.nodeValue</title> |
| 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-nodevalue"> | 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-nodevalue"> |
| 5 <script src=../../../../resources/testharness.js></script> | 5 <script src=/resources/testharness.js></script> |
| 6 <script src=../../../../resources/testharnessreport.js></script> | 6 <script src=/resources/testharnessreport.js></script> |
| 7 <div id=log></div> | 7 <div id=log></div> |
| 8 <script> | 8 <script> |
| 9 test(function() { | 9 test(function() { |
| 10 var the_text = document.createTextNode("A span!"); | 10 var the_text = document.createTextNode("A span!"); |
| 11 assert_equals(the_text.nodeValue, "A span!"); | 11 assert_equals(the_text.nodeValue, "A span!"); |
| 12 assert_equals(the_text.data, "A span!"); | 12 assert_equals(the_text.data, "A span!"); |
| 13 the_text.nodeValue = "test again"; | 13 the_text.nodeValue = "test again"; |
| 14 assert_equals(the_text.nodeValue, "test again"); | 14 assert_equals(the_text.nodeValue, "test again"); |
| 15 assert_equals(the_text.data, "test again"); | 15 assert_equals(the_text.data, "test again"); |
| 16 the_text.nodeValue = null; | 16 the_text.nodeValue = null; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 assert_equals(the_frag.nodeValue, null); | 62 assert_equals(the_frag.nodeValue, null); |
| 63 }, "DocumentFragment.nodeValue"); | 63 }, "DocumentFragment.nodeValue"); |
| 64 | 64 |
| 65 test(function() { | 65 test(function() { |
| 66 var the_doctype = document.doctype; | 66 var the_doctype = document.doctype; |
| 67 assert_equals(the_doctype.nodeValue, null); | 67 assert_equals(the_doctype.nodeValue, null); |
| 68 the_doctype.nodeValue = "foo"; | 68 the_doctype.nodeValue = "foo"; |
| 69 assert_equals(the_doctype.nodeValue, null); | 69 assert_equals(the_doctype.nodeValue, null); |
| 70 }, "DocumentType.nodeValue"); | 70 }, "DocumentType.nodeValue"); |
| 71 </script> | 71 </script> |
| OLD | NEW |