OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
3 <title></title> | 3 <title></title> |
4 <script src=../../../../resources/testharness.js></script> | 4 <script src=../../../../resources/testharness.js></script> |
5 <script src=../../../../resources/testharnessreport.js></script> | 5 <script src=../../../../resources/testharnessreport.js></script> |
6 <body style="visibility:hidden"> | 6 <body style="visibility:hidden"> |
7 <div id="target"></div> | 7 <div id="target"></div> |
8 <div id="parent"><span id=target2></span></div> | 8 <div id="parent"><span id=target2></span></div> |
9 <div id="log" style="visibility:visible"></div> | 9 <div id="log" style="visibility:visible"></div> |
10 </body> | 10 </body> |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 docElement.insertAdjacentText("beforeend", "test3"); | 68 docElement.insertAdjacentText("beforeend", "test3"); |
69 assert_equals(docElement.lastChild.nodeValue, "test3"); | 69 assert_equals(docElement.lastChild.nodeValue, "test3"); |
70 | 70 |
71 assert_throws("HierarchyRequestError", function() { | 71 assert_throws("HierarchyRequestError", function() { |
72 docElement.insertAdjacentText("afterend", "test4") | 72 docElement.insertAdjacentText("afterend", "test4") |
73 }); | 73 }); |
74 }, "Adding more than one child to document should cause a HierarchyRequestError
exception") | 74 }, "Adding more than one child to document should cause a HierarchyRequestError
exception") |
75 | 75 |
76 </script> | 76 </script> |
OLD | NEW |