Test passes if the two boxes below look exactly the same.

Key to entities used below: א - The Hebrew letter Alef (strongly RTL). ב - The Hebrew letter Bet (strongly RTL). ג - The Hebrew letter Gimel (strongly RTL). This test makes sure that the direction is set correctly for an input whose value is set dynamically by script.