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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/textarea-paste-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-paste-newline.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/textarea-paste-newline.html b/third_party/WebKit/LayoutTests/fast/forms/textarea-paste-newline.html
deleted file mode 100644
index 8a52a9d54a56b7195f8b1c19cdafbfea30c77a03..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/textarea-paste-newline.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<script>
-function test()
-{
- if (window.testRunner)
- testRunner.dumpAsText();
- var ta = document.getElementById("ta");
- ta.value = "abc\n";
- ta.focus();
- ta.setSelectionRange(0, 4);
- document.execCommand("cut");
- document.execCommand("paste");
- var result1 = ta.value;
- ta.setSelectionRange(0, 0);
- document.execCommand("paste");
- var result2 = ta.value;
-
- if (result1 == "abc\n" && result2 == "abc\nabc\n")
- document.write("<p>Hooray, the test was successful!</p>");
- else if (result1 == "")
- document.write("<p>The test failed; doesn't work in release builds of Safari because paste is not allowed.</p>");
- else
- document.write("<p>The test failed, result 1 was '" + result1.replace("\n", "\\n") + "' and result 2 was '" + result2.replace("\n", "\\n") + "'.</p>");
-}
-</script>
-<body onload="test()">
-<p><textarea id="ta"></textarea></p>

Powered by Google App Engine
This is Rietveld 408576698