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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/show-modal-focusing-steps-expected.txt

Issue 2532983004: Re-work <dialog>#show*() focus algorithm (Closed)
Patch Set: starting to mess with tests Created 4 years 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 Tests focus when a modal dialog is opened. 1 Tests focus when a modal dialog is opened.
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 PASS document.activeElement is outerButton 6 PASS document.activeElement is outerButton
7 Test that focus goes to body if the dialog has no focusable elements, including itself 7 Test that focus goes to outerDialog when shown
8 PASS document.activeElement is outerDialog
9 Test that the activeElement changes to body if outerDialog is blurred
8 PASS document.activeElement is document.body 10 PASS document.activeElement is document.body
9 Test that an autofocus element in the dialog gets focus. 11 Test that an autofocus element in the dialog gets focus.
10 PASS document.activeElement is autofocusButton 12 PASS document.activeElement is autofocusButton
11 ... or else first focusable element in the dialog gets focus.
12 PASS document.activeElement is firstButton
13 ... or else the dialog itself gets focus.
14 PASS document.activeElement is dialog
15 PASS successfullyParsed is true 13 PASS successfullyParsed is true
16 14
17 TEST COMPLETE 15 TEST COMPLETE
18 16
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698