blob: 682ea8ad2811313663b600001cd11d2b6a42924e [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../editing.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function editingTest() {
var editable = document.getElementById('editable');
editable.focus();
document.execCommand('SelectAll');
document.execCommand('InsertText', false, 'SUCCEEDED');
document.execCommand('SelectAll');
document.write("PASS. WebKit didn't crash.");
}
</script>
</head>
<body onload=runEditingTest()>
<div id="editable" contenteditable="true">
Foo
<div style="overflow:scroll;">
<div style="display:table"></div>
</div>
</div>
</body>
</html>