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

Unified Diff: LayoutTests/editing/pasteboard/paste-when-over-link.html

Issue 23060022: Don't turn middleclicks into click events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed tests that no longer added any value. Created 7 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/editing/pasteboard/paste-when-over-link-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/pasteboard/paste-when-over-link.html
diff --git a/LayoutTests/editing/pasteboard/paste-when-over-link.html b/LayoutTests/editing/pasteboard/paste-when-over-link.html
deleted file mode 100644
index 3cf50003fd5d4f0b8e9f9f4b7cebff1556b189b3..0000000000000000000000000000000000000000
--- a/LayoutTests/editing/pasteboard/paste-when-over-link.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<p id="description">
-This test passes if middle mouse clicking on a link where the event handler
-focuses a textarea does not paste into the textarea.
-</p>
-<a href="link" id="link">Link</a>
-<textarea id="textarea">Content</textarea>
-<script src="../../resources/dump-as-markup.js"></script>
-<script>
-
-Markup.description(document.getElementById('description').textContent);
-
-document.body.focus();
-document.execCommand('SelectAll', false, null);
-document.execCommand('Copy', false, null);
-
-var textarea = document.getElementById('textarea');
-var linkElement = document.getElementById('link');
-
-linkElement.addEventListener("click", function(e) {
- e.preventDefault();
- textarea.focus();
-});
-
-var linkX = linkElement.offsetLeft + linkElement.offsetWidth / 2;
-var linkY = linkElement.offsetTop + linkElement.offsetHeight / 2;
-
-eventSender.mouseMoveTo(linkX, linkY);
-eventSender.mouseDown(1);
-eventSender.mouseUp(1);
-
-Markup.dump(textarea, 'After middle click on link');
-</script>
-</body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/editing/pasteboard/paste-when-over-link-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698