Bug 110979: Selection direction is not preserved when applying styles

This test verifies that selection direction is preserved when applying styles.

This is some sample text