Upstream version 11.39.250.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / fragment-activation-focuses-target-expected.txt
1 This tests that if an in-page link is activated, focus control is transferred to the fragment if possible.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 Verify that the focus is on the link.
7 PASS document.activeElement is link1
8 Click the link and verify that focus has moved to the fragment.
9 PASS document.activeElement is document.getElementById('fragment1')
10 Move focus back to the link and verify.
11 PASS document.activeElement is link1
12 Send an enter key event which should also trigger focus to move to the fragment.
13 PASS document.activeElement is document.getElementById('fragment1')
14 Activate a link that does not have a focusable fragment and verify that the currently focused element is unfocused.
15 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
26 PASS successfullyParsed is true
27
28 TEST COMPLETE
29 link1 link2 link3 link4 link5 
30
31 fragment1
32 fragment2