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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/textarea-setvalue-submit.html

Issue 1524663002: Move textarea-related tests to fast/forms/textarea/, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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-setvalue-submit.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/textarea-setvalue-submit.html b/third_party/WebKit/LayoutTests/fast/forms/textarea-setvalue-submit.html
deleted file mode 100644
index 23f8b8659698f67f6f4c335d8f4cd6c1bbaff3fd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/textarea-setvalue-submit.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<html>
-<head>
-<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
-<title>Charsets and submitting forms</title>
-</head>
-<body>
-<form name="f" method="?" action="textarea-setvalue-submit.html">
-<textarea id="textarea1" name="textarea1">default value</textarea>
-<textarea id="textarea2" name="textarea2" style="display:none">default value</textarea>
-</form>
-<script>
-
-if (document.URL.indexOf('?') == -1) {
-
- if (window.testRunner) {
- window.testRunner.dumpAsText();
- window.testRunner.waitUntilDone();
- }
-
- var textarea1 = document.getElementById("textarea1");
- textarea1.value = "new value";
- var textarea2 = document.getElementById("textarea2");
- textarea2.value = "new value";
-
- document.f.submit();
-
-} else {
- var formData = document.URL.substring(document.URL.indexOf('?') + 1, document.URL.length);
- var expected = "textarea1=new+value&textarea2=new+value";
- if (formData == expected)
- document.write("Success");
- else
- document.write("Failure. The value set in the textarea via javascript wasn't sent when the form was submitted. Expected: " + expected + ", Found: " + formData);
-
- if (window.testRunner)
- window.testRunner.notifyDone();
-}
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698