chromium/third_party/blink/web_tests/editing/selection/cleared-by-relayout.html

<p>
    Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=15942">http://bugs.webkit.org/show_bug.cgi?id=15942</a>
    REGRESSION: Selecting "Edit Html" tab in Blogger causes crash (Assertion failed: isRange())</i>.
</p>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    function prepare()
    {
        var target = document.getElementById('target');
        var doc = target.contentDocument;
        target.contentWindow.getSelection().collapse(doc.body, 0);
        target.focus();
        test();
    }

    function test()
    {
        var target = document.getElementById('target');
        target.style.display = 'none';
        target.contentDocument.body.innerHTML;
    }
</script>
<p>
    <iframe onload="prepare()" id="target" srcdoc="<body contenteditable>"></iframe>
</p>