blob: 9274bd7432e4f907b11165383700c8fcf0d10abd [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script src="../../fast/dom/resources/event-sender-util.js"></script>
</head>
<body>
<p>In this test, we do execCommand('Indent') in the direct child of ShadowRoot
to confirm a crash doesn't happen.</p>
<div id="container" contenteditable></div>
<pre id="console"></div>
<script>
var shadowRoot = container.createShadowRoot();
shadowRoot.innerHTML = "<span contenteditable>Kotori Otonashi</span>"
var span = shadowRoot.firstChild;
mouseMoveToElem(span);
eventSender.mouseDown();
eventSender.mouseUp();
document.execCommand('Indent');
var successfullyParsed = true;
</script>
</body>
</html>