1 Tests that showModal() performs the steps specified in the HTML spec. bug 97425
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
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 exception."
9 PASS dialog.showModal(); threw exception InvalidStateError: Failed to execute 'showModal' on 'HTMLDialogElement': The element already has an 'open' attribute, and 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 'showModal' 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 as normal.
15 PASS dialog.open is true
16 PASS successfullyParsed is true