OLD | NEW |
1 This tests that if an in-page link is activated, focus control is transferred to
the fragment if possible. | 1 This tests that if an in-page link is activated, focus control is transferred to
the fragment if possible. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 Verify that the focus is on the link. | 6 Verify that the focus is on the link. |
7 PASS document.activeElement is link1 | 7 PASS document.activeElement is link1 |
8 Click the link and verify that focus has moved to the fragment. | 8 Click the link and verify that focus has moved to the fragment. |
9 PASS document.activeElement is document.getElementById('fragment1') | 9 PASS document.activeElement is document.getElementById('fragment1') |
10 Move focus back to the link and verify. | 10 Move focus back to the link and verify. |
11 PASS document.activeElement is link1 | 11 PASS document.activeElement is link1 |
12 Send an enter key event which should also trigger focus to move to the fragment. | 12 Send an enter key event which should also trigger focus to move to the fragment. |
13 PASS document.activeElement is document.getElementById('fragment1') | 13 PASS document.activeElement is document.getElementById('fragment1') |
14 Activate a link that does not have a focusable fragment and verify focus does no
t move. | 14 Activate a link that does not have a focusable fragment and verify that the curr
ently focused element is unfocused. |
15 PASS document.activeElement is link2 | 15 PASS document.activeElement is link2 |
16 PASS document.activeElement is link2 | 16 PASS document.activeElement is document.body |
| 17 Activate a link that does not refer to an existing fragment and verify that the
currently focused element remains focused. |
| 18 PASS document.activeElement is link3 |
| 19 PASS document.activeElement is link3 |
| 20 Activate a link to #top and verify that the link remains focused |
| 21 PASS document.activeElement is link4 |
| 22 PASS document.activeElement is link4 |
| 23 Activate a link to # and verify that the link remains focused |
| 24 PASS document.activeElement is link5 |
| 25 PASS document.activeElement is link5 |
17 PASS successfullyParsed is true | 26 PASS successfullyParsed is true |
18 | 27 |
19 TEST COMPLETE | 28 TEST COMPLETE |
20 link1 link2 | 29 link1 link2 link3 link4 link5 |
21 | 30 |
22 fragment1 | 31 fragment1 |
23 fragment2 | 32 fragment2 |
OLD | NEW |