chromium/third_party/blink/web_tests/fast/frames/adopt-object-into-itself.html

<script>
if (window.testRunner)
    testRunner.dumpAsText();

function test() {
    try {
        var frame = document.getElementById("f");
        var childNode = frame.contentDocument.adoptNode(frame);
    } catch(ex) {
        alert(ex);
    }
}
</script>
<object id="f" onload="test();" type="text/html" data="resources/empty-body.html"></object>