Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-show-modal.html

Issue 2671603003: Move DIALOG element tests to html/dialog/. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-show-modal.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-show-modal.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-show-modal.html
deleted file mode 100644
index 9f4c83f3381bbb2063723224ce945cfff5038ba7..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-show-modal.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<dialog id="mydialog">It's my dialog.</dialog>
-<script>
-description("Tests that showModal() performs the steps specified in the HTML spec. bug 97425");
-
-dialog = document.getElementById('mydialog');
-computedStyle = window.getComputedStyle(dialog, null);
-shouldBeEqualToString("computedStyle.getPropertyValue('display')", "none");
-
-dialog.showModal();
-shouldBeEqualToString("computedStyle.getPropertyValue('display')", "block");
-
-// The quoted texts output below are from <http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#dom-dialog-showmodal>.
-debug('"If dialog already has an open attribute, then throw an InvalidStateError exception."');
-shouldThrow('dialog.showModal();', '"InvalidStateError: Failed to execute \'showModal\' on \'HTMLDialogElement\': The element already has an \'open\' attribute, and therefore cannot be opened modally."');
-
-dialog.close();
-shouldBeEqualToString("computedStyle.getPropertyValue('display')", "none");
-
-dialog.parentNode.removeChild(dialog);
-debug('"If dialog is not in a Document, then throw an InvalidStateError exception."');
-shouldThrow('dialog.showModal();', '"InvalidStateError: Failed to execute \'showModal\' on \'HTMLDialogElement\': The element is not in a Document."');
-
-doc = document.implementation.createHTMLDocument();
-doc.body.appendChild(dialog);
-shouldBeFalse("dialog.open");
-dialog.showModal();
-debug('Although the document is not attached to any pages, showModal() should execute as normal.');
-shouldBeTrue("dialog.open");
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698