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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-does-not-block-mouse-events.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/non-modal-dialog-does-not-block-mouse-events.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-does-not-block-mouse-events.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-does-not-block-mouse-events.html
deleted file mode 100644
index c6346bff0c357f78e1f66796f46693aa282e8834..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-does-not-block-mouse-events.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-#div {
- height: 100px;
- width: 100px;
- background: red;
-}
-</style>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<div id="div"></div>
-<dialog id="dialog"></dialog>
-<script>
-description('Test for bug 110952. Ensure that non-modal dialogs do not block mouse events. To test manually, click the red box. The test succeeds if the red box turns green.');
-
-function clickOn(element)
-{
- if (!window.eventSender)
- return;
-
- var absoluteTop = 0;
- var absoluteLeft = 0;
- for (var parentNode = element; parentNode; parentNode = parentNode.offsetParent) {
- absoluteLeft += parentNode.offsetLeft;
- absoluteTop += parentNode.offsetTop;
- }
-
- var x = absoluteLeft + element.offsetWidth / 2;
- var y = absoluteTop + element.offsetHeight / 2;
- eventSender.mouseMoveTo(x, y);
- eventSender.mouseDown();
- eventSender.mouseUp()
- eventSender.mouseMoveTo(0, 0);
-}
-
-if (window.testRunner)
- testRunner.dumpAsText();
-
-dialog = document.getElementById('dialog');
-dialog.show();
-
-div = document.getElementById('div');
-div.firedOn = false;
-div.addEventListener('click', function(event) {
- div.firedOn = true;
- div.style.backgroundColor = 'green';
-});
-
-clickOn(div);
-
-shouldBeTrue('div.firedOn');
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698