This test ensures WebKit lets user select bidirectional text intuitively. To manually test, select text in blue box in each test case below by a mouse drag from left to right. The changes in the selected text should match the expectations before |. Do the same by a mouse drag from right to left and expectations are after |.

Selected text:
abcאבג
a,ab,abc,abcAB,abcA,abcABC|A,AB,ABC,cABC,bcABC,abcABC
אבגdef
C,BC,ABC,ABCd,ABCef,ABCdef|f,ef,def,BCdef,Cdef,ABCdef
abcאבגdef
C,BC,ABC|A,AB,ABC
אבגdef
C,BC,ABC|A,AB,ABC
אבגdef
e,ef|f,ef
abcאבג
B,AB|A,AB
aקל12יםd
1,12|2,12
אבג 123
1,12,123, 123,C 123,BC 123,ABC 123|A,AB,ABC,ABC ,ABC 12,ABC 1,ABC 123
אבג 123
1,12, 123,C 123,BC 123,ABC 123|A,AB,ABC,ABC ,ABC 12,ABC 1,ABC 123
aאבגb
aאבגb
C,BC,ABC|A,AB,ABC
אבג
C,BC,ABC|A,AB,ABC