Some tests don't work in rtl, so add a way to hardcode the expected text direction. This is in preparation for running reftests in an rtl locale.
Some tests don't work in rtl, so add a way to hardcode the expected text direction. This is in preparation for running reftests in an rtl locale.