blob: afae96c4d7fe5beec8569c43bb1f62fdeb4bdbd0 [file] [log] [blame]
n_wang@apple.com79737422015-11-03 01:52:38 +00001This tests that aria-modal works correctly on multiple dialogs
2
n_wang@apple.com79737422015-11-03 01:52:38 +00003
tyler_w@apple.com27ae3d32022-06-07 21:45:25 +00004Verifying the background is accessible on page load.
n_wang@apple.com79737422015-11-03 01:52:38 +00005
tyler_w@apple.com27ae3d32022-06-07 21:45:25 +00006PASS: background accessible: true
7
8Clicking the display button to open #dialog1.
9
10PASS: background accessible: false
11PASS: #dialog1 accessible: true
12
13Clicking the new button to open #dialog2 without closing #dialog1.
14
15PASS: background accessible: false
16PASS: #dialog1 accessible: false
17PASS: #dialog2 accessible: true
18
19Focusing first descendant of #dialog1.
20
21PASS: background accessible: false
22PASS: #dialog1 accessible: true
23PASS: #dialog2 accessible: false
24
25Moving focus back to first descendant of #dialog2.
26
27PASS: background accessible: false
28PASS: #dialog1 accessible: false
29PASS: #dialog2 accessible: true
30
31Closing dialog2.
32
33PASS: background accessible: false
34PASS: #dialog1 accessible: true
35
36Closing dialog1.
37
38PASS: background accessible: true
39
n_wang@apple.com79737422015-11-03 01:52:38 +000040PASS successfullyParsed is true
41
42TEST COMPLETE
tyler_w@apple.com27ae3d32022-06-07 21:45:25 +000043
n_wang@apple.com79737422015-11-03 01:52:38 +000044Other page content with a dummy focusable element
45
46Display a dialog