<!DOCTYPE html>
<html>
<body>
<script src="../../resources/dump-as-markup.js"></script>
<div contenteditable="true"><ul><li>One<br></li><li>Two<br></li><li>Three<br></li></ul></div>
<script>

Markup.description('This tests switching the list type of multiple list items at once. WebKit should not crash.');

var div = document.getElementsByTagName('div')[0];
window.getSelection().selectAllChildren(div);
document.execCommand('InsertOrderedList', false, null);

Markup.dump(div, 'One, Two, and Three should all be in a single ol, each followed by a single br.');

</script>
</body>
</html>
