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

Unified Diff: LayoutTests/editing/input/caret-at-the-edge-of-contenteditable.html

Issue 9969106: Revert 103073 - Scroll non-visible edit controls and caret into the center of the view when startin… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 9 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/input/caret-at-the-edge-of-input.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/input/caret-at-the-edge-of-contenteditable.html
===================================================================
--- LayoutTests/editing/input/caret-at-the-edge-of-contenteditable.html (revision 113049)
+++ LayoutTests/editing/input/caret-at-the-edge-of-contenteditable.html (working copy)
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<head>
-</head>
-<body>
-<div>When the caret reaches the edge of the input box or content editable div, on the next input if must jump to the center of the control.</div>
-<span style="position:absolute; visibility:hidden" id="single-digit">0</span>
-<div style="border:thin solid black; white-space:nowrap; overflow:hidden" contenteditable="true" id="input-contenteditable">012345678901234567890123456789</div>
-<script>
-
-var contentEditable = document.getElementById("input-contenteditable");
-var singleDigitWidth = document.getElementById("single-digit").clientWidth;
-var contentEditableSize = 10;
-contentEditable.style.width = (singleDigitWidth * contentEditableSize) + "px";
-contentEditable.focus();
-// Move the caret to the beginning of the input.
-getSelection().collapse(contentEditable.firstChild, 0);
-var editableContent = contentEditable.textContent;
-if (window.eventSender) {
- for (var i = 0; i < contentEditableSize * 1.2; ++i)
- eventSender.keyDown(editableContent[i]);
-}
-
-</script>
-</body>
« no previous file with comments | « no previous file | LayoutTests/editing/input/caret-at-the-edge-of-input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698