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 | 6 |
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 <span id="test1"></span> | 10 <span id="test1"></span> |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 assert_equals(docElement.lastChild.id, "test3"); | 82 assert_equals(docElement.lastChild.id, "test3"); |
83 assert_equals(el.id, "test3"); | 83 assert_equals(el.id, "test3"); |
84 | 84 |
85 assert_throws("HierarchyRequestError", function() { | 85 assert_throws("HierarchyRequestError", function() { |
86 var el = docElement.insertAdjacentElement("afterend", document.getElementByI
d("test4")); | 86 var el = docElement.insertAdjacentElement("afterend", document.getElementByI
d("test4")); |
87 assert_equals(el, null); | 87 assert_equals(el, null); |
88 }); | 88 }); |
89 }, "Adding more than one child to document should cause a HierarchyRequestError
exception") | 89 }, "Adding more than one child to document should cause a HierarchyRequestError
exception") |
90 | 90 |
91 </script> | 91 </script> |
OLD | NEW |