<html>
<body>
<h1>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=48019">Bug 48019</a>. It is OK not to crash.</h1>

<meter><isindex>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
document.designMode = "on";
document.execCommand("SelectAll");
document.execCommand("CreateLink", 0, 'foo');
document.execCommand("JustifyCenter");
</script>

</body>
</html>
