[Webkit-unassigned] [Bug 26361] Test case LayoutTests\editing\deleting\5156801.html is borken
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 12 16:28:56 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26361
------- Comment #1 from rniwa at google.com 2009-06-12 16:28 PDT -------
My guess is that the test should look something like this:
<p>This tests for a bug where delete would crash if a node just after the
selection to delete is removed in a DOMNodeRemoved event handler for the last
node in the selection to delete.</p>
<div id="div" contenteditable="true">foo<span id="foo">x</span><span
id="removeme">y</span></div>
<p id="console"></p>
<script>
if (window.layoutTestController)
window.layoutTestController.dumpAsText();
function log(message) {
var console = document.getElementById("console");
var text = document.createTextNode(message);
console.appendChild(text);
}
function removeHandler() {
var removeme = document.getElementById("removeme");
removeme.parentNode.removeChild(removeme);
}
document.getElementById("foo").addEventListener("DOMNodeRemoved",
removeHandler);
var sel = window.getSelection();
sel.setBaseAndExtent( document.getElementById('foo'), 0,
document.getElementById('foo'), 1 );
document.execCommand("Delete");
log(document.getElementById('div');
</script>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list