Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / textarea-submit-crash.html
blob939cdac933cc8606faf0e34ede8ec2f43900572f
1 <p>This tests that a display:none textarea doesn't crash when submitted in a form.</p>
2 <form action="?" id="form">
3 <textarea id="textarea" name=value style="-webkit-appearance:textarea" wrap=hard>123456789</textarea>
4 </form>
6 <pre id="console"></pre>
8 <script>
9 function log(s) {
10 document.getElementById('console').appendChild(document.createTextNode(s + "\n"));
13 (function () {
14 if (document.URL.indexOf('?') == -1) {
15 if (window.testRunner) {
16 testRunner.dumpAsText();
17 testRunner.waitUntilDone();
20 document.getElementById("textarea").style.display = "none";
21 document.getElementById("form").submit();
22 return;
25 log("PASS: You didn't crash.");
26 log("Submitted form value: " + location.search);
28 if (window.testRunner)
29 testRunner.notifyDone();
30 })();
31 </script>