chromium/third_party/blink/web_tests/fast/dom/Element/remove.html

<!DOCTYPE html>
<script src="../../../resources/js-test.js"></script>
<div id="test"></div>
<script>

description('This tests the DOM 4 remove method on an Element.');

var testDiv = document.getElementById('test');
var a = document.createElement('a');
testDiv.appendChild(a);
shouldBe('testDiv.childNodes.length', '1');
a.remove();
shouldBe('testDiv.childNodes.length', '0');
a.remove();
shouldBe('testDiv.childNodes.length', '0');

</script>