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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/textarea-linewrap-dynamic.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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <body>
3 <p>This tests that a textarea where the wrap attribute is removed reverts to nor mal wrapping behavior.</p>
4 <form name="f" method="?" action="textarea-linewrap-dynamic.html">
5 <textarea id="textarea" name="textarea" wrap="hard" cols="5">123456789</textarea >
6 <input type="submit">
7 </form>
8 <script>
9 if (document.URL.indexOf('?') == -1) {
10 if (window.testRunner) {
11 window.testRunner.dumpAsText();
12 window.testRunner.waitUntilDone();
13 }
14 document.getElementById("textarea").removeAttribute("wrap");
15 document.f.submit();
16 } else {
17 var formData = document.URL.substring(document.URL.indexOf('?') + 1, documen t.URL.length);
18 if (formData == "textarea=123456789")
19 document.write("Success");
20 else
21 document.write("Failure. The form data that should have been submitted: textarea=123456789<br>This is what was actually submitted: " + formData);
22 if (window.testRunner)
23 window.testRunner.notifyDone();
24 }
25 </script>
26 </body>
27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698