n_wang@apple.com | 7973742 | 2015-11-03 01:52:38 +0000 | [diff] [blame] | 1 | This tests that aria-modal works correctly on multiple dialogs |
| 2 | |
n_wang@apple.com | 7973742 | 2015-11-03 01:52:38 +0000 | [diff] [blame] | 3 | |
tyler_w@apple.com | 27ae3d3 | 2022-06-07 21:45:25 +0000 | [diff] [blame] | 4 | Verifying the background is accessible on page load. |
n_wang@apple.com | 7973742 | 2015-11-03 01:52:38 +0000 | [diff] [blame] | 5 | |
tyler_w@apple.com | 27ae3d3 | 2022-06-07 21:45:25 +0000 | [diff] [blame] | 6 | PASS: background accessible: true |
| 7 | |
| 8 | Clicking the display button to open #dialog1. |
| 9 | |
| 10 | PASS: background accessible: false |
| 11 | PASS: #dialog1 accessible: true |
| 12 | |
| 13 | Clicking the new button to open #dialog2 without closing #dialog1. |
| 14 | |
| 15 | PASS: background accessible: false |
| 16 | PASS: #dialog1 accessible: false |
| 17 | PASS: #dialog2 accessible: true |
| 18 | |
| 19 | Focusing first descendant of #dialog1. |
| 20 | |
| 21 | PASS: background accessible: false |
| 22 | PASS: #dialog1 accessible: true |
| 23 | PASS: #dialog2 accessible: false |
| 24 | |
| 25 | Moving focus back to first descendant of #dialog2. |
| 26 | |
| 27 | PASS: background accessible: false |
| 28 | PASS: #dialog1 accessible: false |
| 29 | PASS: #dialog2 accessible: true |
| 30 | |
| 31 | Closing dialog2. |
| 32 | |
| 33 | PASS: background accessible: false |
| 34 | PASS: #dialog1 accessible: true |
| 35 | |
| 36 | Closing dialog1. |
| 37 | |
| 38 | PASS: background accessible: true |
| 39 | |
n_wang@apple.com | 7973742 | 2015-11-03 01:52:38 +0000 | [diff] [blame] | 40 | PASS successfullyParsed is true |
| 41 | |
| 42 | TEST COMPLETE |
tyler_w@apple.com | 27ae3d3 | 2022-06-07 21:45:25 +0000 | [diff] [blame] | 43 | |
n_wang@apple.com | 7973742 | 2015-11-03 01:52:38 +0000 | [diff] [blame] | 44 | Other page content with a dummy focusable element |
| 45 | |
| 46 | Display a dialog |