Pass if no crash or assert.
<div id=first></div>
<div id=middle></div>
<div id=last></div>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
middle.after("text");

var foo = document.createRange();
foo.selectNodeContents(last);
foo.setStartAfter(first);
foo.getBoundingClientRect();
</script>
