OLD | NEW |
| (Empty) |
1 Tests that showModal() performs the steps specified in the HTML spec. bug 97425 | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS computedStyle.getPropertyValue('display') is "none" | |
7 PASS computedStyle.getPropertyValue('display') is "block" | |
8 "If dialog already has an open attribute, then throw an InvalidStateError except
ion." | |
9 PASS dialog.showModal(); threw exception InvalidStateError: Failed to execute 's
howModal' on 'HTMLDialogElement': The element already has an 'open' attribute, a
nd therefore cannot be opened modally.. | |
10 PASS computedStyle.getPropertyValue('display') is "none" | |
11 "If dialog is not in a Document, then throw an InvalidStateError exception." | |
12 PASS dialog.showModal(); threw exception InvalidStateError: Failed to execute 's
howModal' on 'HTMLDialogElement': The element is not in a Document.. | |
13 PASS dialog.open is false | |
14 Although the document is not attached to any pages, showModal() should execute a
s normal. | |
15 PASS dialog.open is true | |
16 PASS successfullyParsed is true | |
17 | |
18 TEST COMPLETE | |
19 | |
OLD | NEW |