1 This test verifies that the Home/End/PageUp/PageDown keys work correctly for pop-up <select> elements that have focus but are not currently popped-up.
3 Output below is a series of PASS or FAIL lines showing expected and actual selection indexes, followed by a single PASS or FAIL for the status of the entire test.
5 NOTE: This test will fail on Mac OS, on which these keys are NOT supposed to change the selection of a focused pop-up.
8 FAIL: selectedIndex should be 3 (is 0) after a PageDown from index 0
9 FAIL: selectedIndex should be 4 (is 1) after a PageDown from index 1
10 FAIL: selectedIndex should be 5 (is 2) after a PageDown from index 2
11 FAIL: selectedIndex should be 6 (is 3) after a PageDown from index 3
12 FAIL: selectedIndex should be 6 (is 4) after a PageDown from index 4
13 FAIL: selectedIndex should be 6 (is 5) after a PageDown from index 5
14 FAIL: selectedIndex should be 3 (is 6) after a PageUp from index 6
15 FAIL: selectedIndex should be 2 (is 5) after a PageUp from index 5
16 FAIL: selectedIndex should be 1 (is 4) after a PageUp from index 4
17 FAIL: selectedIndex should be 0 (is 3) after a PageUp from index 3
18 FAIL: selectedIndex should be 0 (is 2) after a PageUp from index 2
19 FAIL: selectedIndex should be 0 (is 1) after a PageUp from index 1
20 FAIL: selectedIndex should be 0 (is 6) after a Home from index 6
21 FAIL: selectedIndex should be 0 (is 5) after a Home from index 5
22 FAIL: selectedIndex should be 0 (is 4) after a Home from index 4
23 FAIL: selectedIndex should be 0 (is 3) after a Home from index 3
24 FAIL: selectedIndex should be 0 (is 2) after a Home from index 2
25 FAIL: selectedIndex should be 0 (is 1) after a Home from index 1
26 FAIL: selectedIndex should be 6 (is 5) after a End from index 5
27 FAIL: selectedIndex should be 6 (is 4) after a End from index 4
28 FAIL: selectedIndex should be 6 (is 3) after a End from index 3
29 FAIL: selectedIndex should be 6 (is 2) after a End from index 2
30 FAIL: selectedIndex should be 6 (is 1) after a End from index 1
31 FAIL: selectedIndex should be 6 (is 0) after a End from index 0
32 FAIL: selectedIndex should be 4 (is 1) after a PageDown from index 1
33 FAIL: selectedIndex should be 5 (is 2) after a PageDown from index 2
34 FAIL: selectedIndex should be 6 (is 4) after a PageDown from index 4
35 FAIL: selectedIndex should be 6 (is 5) after a PageDown from index 5
36 FAIL: selectedIndex should be 2 (is 6) after a PageUp from index 6
37 FAIL: selectedIndex should be 2 (is 5) after a PageUp from index 5
38 FAIL: selectedIndex should be 1 (is 4) after a PageUp from index 4
39 FAIL: selectedIndex should be 1 (is 2) after a PageUp from index 2
40 FAIL: selectedIndex should be 1 (is 7) after a Home from index 7
41 FAIL: selectedIndex should be 1 (is 6) after a Home from index 6
42 FAIL: selectedIndex should be 1 (is 5) after a Home from index 5
43 FAIL: selectedIndex should be 1 (is 4) after a Home from index 4
44 FAIL: selectedIndex should be 1 (is 3) after a Home from index 3
45 FAIL: selectedIndex should be 1 (is 2) after a Home from index 2
46 FAIL: selectedIndex should be 1 (is 0) after a Home from index 0
47 FAIL: selectedIndex should be 6 (is 7) after a End from index 7
48 FAIL: selectedIndex should be 6 (is 5) after a End from index 5
49 FAIL: selectedIndex should be 6 (is 4) after a End from index 4
50 FAIL: selectedIndex should be 6 (is 3) after a End from index 3
51 FAIL: selectedIndex should be 6 (is 2) after a End from index 2
52 FAIL: selectedIndex should be 6 (is 1) after a End from index 1
53 FAIL: selectedIndex should be 6 (is 0) after a End from index 0
55 FAIL: SOME TESTS FAILED (SEE ABOVE)