blob: 782612366ed1e5045cfb50bc11681c070ce51caf [file] [log] [blame]
<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>
<p>
<iframe onload="prepare()" id="target" src="data:text/html,&lt;body contenteditable&gt;"></iframe>
</p>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
var target = document.getElementById('target');
function prepare()
{
var doc = target.contentDocument;
target.contentWindow.getSelection().setPosition(doc.body, 0);
target.focus();
test();
}
function test()
{
target.style.display = 'none';
target.contentDocument.body.innerHTML;
}
</script>