| OLD | NEW |
| 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 |
| OLD | NEW |