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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/modal-dialog-distributed-child-is-not-inert.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/modal-dialog-distributed-child-is-not-inert.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/modal-dialog-distributed-child-is-not-inert.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/modal-dialog-distributed-child-is-not-inert.html
deleted file mode 100644
index eba625b8abf55eb7527159d161a2e73ec3c46ec4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/modal-dialog-distributed-child-is-not-inert.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<dialog>
- <content></content>
-</dialog>
-<div id="host">
- <button>Click me</button>
-</div>
-<script>
-function clickOn(element)
-{
- if (!window.eventSender)
- return;
- var rect = element.getBoundingClientRect();
- eventSender.mouseMoveTo(rect.left + rect.width / 2, rect.top + rect.height / 2);
- eventSender.mouseDown();
- eventSender.mouseUp();
-}
-
-jsTestIsAsync = true;
-description('Tests that nodes transposed into the dialog are not inert. The test passes if you can click the button.');
-
-dialog = document.querySelector('dialog');
-root = document.querySelector('#host').createShadowRoot();
-root.appendChild(dialog);
-dialog.showModal();
-
-button = document.querySelector('button');
-dialog.addEventListener('click', function(event) {
- if (event.target == button)
- testPassed('button was clicked');
- else
- testFailed('button was not clicked');
- finishJSTest();
-});
-clickOn(button);
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698