| <script src="../../js/resources/js-test-pre.js"></script> |
| internals.settings.setDialogElementEnabled(true); |
| <dialog id="mydialog">It's my dialog.</dialog> |
| description("Tests that dialog is visible after show() is called and not visible after close() is called. bug 90931"); |
| dialog = document.getElementById('mydialog'); |
| computedStyle = window.getComputedStyle(dialog, null); |
| shouldBe("computedStyle.getPropertyValue('display')", "'none'"); |
| computedStyle = window.getComputedStyle(dialog, null); |
| shouldBe("computedStyle.getPropertyValue('display')", "'block'"); |
| computedStyle = window.getComputedStyle(dialog, null); |
| shouldBe("computedStyle.getPropertyValue('display')", "'none'"); |
| shouldThrow('dialog.close();', "'Error: INVALID_STATE_ERR: DOM Exception 11'"); |
| <script src="../../js/resources/js-test-post.js"></script> |