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).
אבגABC.
XY
Z
אבגABC.
XY
Z
אבגABC.
XY
Z
אבגABC.
XY
Z