1 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 |.
3 Test "abcABC" in "abcABC":
4 Selecting from left to right
10 PASS selected "abcABC"
11 Selecting from right to left
17 PASS selected "abcABC"
19 Test "ABCdef" in "ABCdef":
20 Selecting from left to right
25 FAIL selected "ABCde" but expected "ABCef"
26 PASS selected "ABCdef"
27 Selecting from right to left
33 PASS selected "ABCdef"
35 Test "ABC" in "abcABCdef":
36 Selecting from left to right
40 Selecting from right to left
45 Test "ABC" in "ABCdef":
46 Selecting from left to right
50 Selecting from right to left
55 Test "ef" in "ABCdef":
56 Selecting from left to right
59 Selecting from right to left
63 Test "AB" in "abcABC":
64 Selecting from left to right
67 Selecting from right to left
71 Test "12" in "aXM12JNd":
72 Selecting from left to right
75 Selecting from right to left
79 Test "ABC 123" in "ABC 123":
80 Selecting from left to right
86 PASS selected "BC 123"
87 PASS selected "ABC 123"
88 Selecting from right to left
93 PASS selected "ABC 12"
95 PASS selected "ABC 123"
97 Test "ABC 123" in "ABC 123":
98 Selecting from left to right
101 FAIL selected "123" but expected " 123"
102 FAIL selected " " but expected "C 123"
103 FAIL selected "C " but expected "BC 123"
104 FAIL selected "BC " but expected "ABC 123"
105 FAIL selected "123" but expected "undefined"
106 Selecting from right to left
110 FAIL selected "" but expected "ABC "
111 PASS selected "ABC 12"
112 PASS selected "ABC 1"
113 FAIL selected "123" but expected "ABC 123"
115 Test "ABC" in "aABCb":
116 Selecting from left to right
120 Selecting from right to left
126 Selecting from left to right
130 Selecting from right to left
135 PASS successfullyParsed is true