Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/fragment-activation-focuses-target-expected.txt

Issue 1438953002: Update selection when an element is focused by in-document fragment link. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 that the curr ently focused element is unfocused. 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 document.body 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. 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 18 PASS document.activeElement is link3
19 PASS document.activeElement is link3 19 PASS document.activeElement is link3
20 Activate a link to #top and verify that the link remains focused 20 Activate a link to #top and verify that the link remains focused
21 PASS document.activeElement is link4 21 PASS document.activeElement is link4
22 PASS document.activeElement is link4 22 PASS document.activeElement is link4
23 Activate a link to # and verify that the link remains focused 23 Activate a link to # and verify that the link remains focused
24 PASS document.activeElement is link5 24 PASS document.activeElement is link5
25 PASS document.activeElement is link5 25 PASS document.activeElement is link5
26 Activate a link to an INPUT elemnt, verify that the INPUT is editable
27 PASS document.activeElement is link6
28 PASS document.activeElement is input1
29 PASS input1.value is "abcXdef"
26 PASS successfullyParsed is true 30 PASS successfullyParsed is true
27 31
28 TEST COMPLETE 32 TEST COMPLETE
29 link1 link2 link3 link4 link5 33 link1 link2 link3 link4 link5 link6
30 34
31 fragment1 35 fragment1
32 fragment2 36 fragment2
37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698