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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/textarea-default-value-leading-newline.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-default-value-leading-newline.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/textarea-default-value-leading-newline.html b/third_party/WebKit/LayoutTests/fast/forms/textarea-default-value-leading-newline.html
deleted file mode 100644
index 65ed8659c12c4c6e9902548a71e50a9311038416..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/textarea-default-value-leading-newline.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.defaultValue = "\ntesting";
- compare(elt.defaultValue, "\ntesting");
- elt.defaultValue = "\n\ntesting";
- compare(elt.defaultValue, "\n\ntesting");
- elt.defaultValue = "\n\n\ntesting";
- compare(elt.defaultValue, "\n\n\ntesting");
- elt.defaultValue = "";
- }
- function compare(val, exp)
- {
- if (val == exp) {
- print("Passed");
- } else {
- print("Failed");
- }
- }
- </script>
- </head>
- <body onload="test();">
- <p>This test attempts to set a leading newline in a text area's default value.</p>
- <p>If the test passes, you should see a 3 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