Ensures that replaceChild() throws an exception if mutation even handler does something wrong On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". PASS target.replaceChild(newChild, oldChild); threw exception HierarchyRequestError: The operation would yield an incorrect node tree.. PASS successfullyParsed is true TEST COMPLETE