1 Tests canceling modal dialogs using the Escape key. To test manually, hit Escape once to see the topmost dialog turn green, then once again to close it. Repeat for the remaining dialog.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Top dialog event listener should prevent closing.
7 PASS topDialog.open is true
8 PASS bottomDialog.open is true
9 Top dialog should close.
10 PASS topDialog.open is false
11 PASS bottomDialog.open is true
12 Input should swallow Escape mechanism.
13 PASS topDialog.open is false
14 PASS bottomDialog.open is true
15 Bottom dialog event listener should prevent closing.
16 PASS topDialog.open is false
17 PASS bottomDialog.open is true
18 Bottom dialog should close.
19 PASS topDialog.open is false
20 PASS bottomDialog.open is false
21 Pressing Escape now should do nothing.
22 PASS topDialog.open is false
23 PASS bottomDialog.open is false
24 PASS successfullyParsed is true