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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/textarea-crlf.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-crlf.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/textarea-crlf.html b/third_party/WebKit/LayoutTests/fast/forms/textarea-crlf.html
deleted file mode 100644
index dd31b400203fec8beb33675ae3bbd0ede2b9fa61..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/textarea-crlf.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<html>
- <head>
- <script type="text/javascript">
- function print(message)
- {
- var paragraph = document.createElement("li");
- paragraph.appendChild(document.createTextNode(message));
- document.getElementById("console").appendChild(paragraph);
- }
- function test()
- {
- if (window.testRunner) {
- testRunner.dumpAsText();
- }
- var elt = document.getElementById("text");
- elt.value = "This\ris\ra\rtest";
- compare(elt.value, "This\nis\na\ntest");
- elt.value = "And\r\nhere\r\nis\r\ntest\r\ntwo";
- compare(elt.value, "And\nhere\nis\ntest\ntwo");
- elt.value = "And\nlastly,\ntest\nthree";
- compare(elt.value, "And\nlastly,\ntest\nthree");
- elt.value = "";
- }
- function compare(val, exp)
- {
- if (val == exp) {
- print("Passed");
- } else {
- print("Failed");
- }
- }
- </script>
- </head>
- <body onload="test();">
- <p>This test attempts to set non-standard line endings in a text area and reads them back. The line endings should all come back as linefeeds.</p>
- <p>If the test passes, you should see three lines saying "Passed" below.</p>
- <hr />
- <form>
- <textarea id="text"></textarea>
- </form>
- <hr />
- <p><ol id="console"></ol></p>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698