<!DOCTYPE HTML>
<pre>
PASS if no crash.
f bar f bar foo bar foo bar
f bar
foobar foobar foobar
f bar foo foobar foobar foobar
f

foo
  <script>
if (window.testRunner)
  testRunner.dumpAsText();
document.designMode = "on";
document.execCommand("SelectAll");
document.execCommand("JustifyRight");
document.execCommand("JustifyLeft");
</script>
