This test checks the text editor selection calculation.