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

Unified Diff: LayoutTests/editing/input/reveal-caret-of-multiline-contenteditable.html

Issue 9965112: 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/1025/
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
Index: LayoutTests/editing/input/reveal-caret-of-multiline-contenteditable.html
===================================================================
--- LayoutTests/editing/input/reveal-caret-of-multiline-contenteditable.html (revision 113050)
+++ LayoutTests/editing/input/reveal-caret-of-multiline-contenteditable.html (working copy)
@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-<head>
-<script type="text/javascript" src="resources/reveal-utilities.js"></script>
-</head>
-<body>
-<div>When the caret is scrolled out, on starting typing it must be brought to the center of the control.</div>
-<span style="position:absolute; visibility:hidden" id="single-digit">0</span>
-<div style="border:thin solid black; overflow:scroll" contenteditable="true" id="input-contenteditable"></div>
-<script>
-
-var contentEditable = document.getElementById("input-contenteditable");
-contentEditable.innerHTML = generateNumbers(0, 30, 2, "<br>");
-var singleDigitHeight = document.getElementById("single-digit").clientHeight;
-var contentEditableSize = 10;
-contentEditable.style.height = (singleDigitHeight * contentEditableSize) + "px";
-contentEditable.focus();
-var child = contentEditable.firstChild;
-for (var i = 0; i < 36; ++i)
- child = child.nextSibling;
-getSelection().collapse(child, 0);
-if (window.eventSender)
- eventSender.keyDown(">");
-
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698