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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/textarea-arrow-navigation.html

Issue 1522803002: Move textarea-related tests to fast/forms/textarea/, part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@color-uaf
Patch Set: Created 5 years 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/forms/textarea-arrow-navigation.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/textarea-arrow-navigation.html b/third_party/WebKit/LayoutTests/fast/forms/textarea-arrow-navigation.html
deleted file mode 100644
index eeff6c22c41f5ccfb9e6d35e1ed37f87a11102f4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/textarea-arrow-navigation.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<html>
-<head>
-<script>
-
-function log(str)
-{
- var li = document.createElement("li");
- li.appendChild(document.createTextNode(str));
- var console = document.getElementById("console");
- console.appendChild(li);
-}
-
-function runTest()
-{
- if (window.testRunner)
- testRunner.dumpAsText();
-
- if (!window.eventSender)
- return;
-
- var textarea = document.getElementById("test");
-
- // set the cursor several characters into the first line of the text area so
- // that when you go down by a line, the cursor will be at the end of the
- // numbered lines:
- textarea.setSelectionRange(5, 5);
- for (var i = 0; i < 10; i++) {
- // press the 'down arrow' a bunch of times to try to get to the end of the text area
- eventSender.keyDown("downArrow");
- }
- if (textarea.selectionStart != textarea.value.length)
- log("Fail. Expected: selectionStart == " + textarea.value.length + ", Found: " + textarea.selectionStart);
- else
- log("Success");
-}
-
-</script>
-
-</head>
- <body onload="runTest()">
- <p>
- This tests that the cursor doesn't get 'stuck' when advancing through a
- text area with the down arrow key. See bug #19465 for more information
- </p>
- <p>
- If the test is successful and the cursor is at the end of the textarea, you should see the word 'Success' printed below
- </p>
-<textarea id="test" rows="10" cols="80">What steps will reproduce the problem?
-1.
-2.
-3.
-
-What is the expected output? What do you see instead?</textarea>
-
-<ul id="console"></ul>
-
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698