LayoutTests:
[WebKit-https.git] / LayoutTests / fast / forms / textarea-hard-linewrap-empty.html
1 <html>
2 <head>
3 </head>
4 <body>
5 <div>Test for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=9537">
6 Bug 9537 REGRESSION: Reproducible crash in WebCore::RenderTextField::textWithHardLineBreaks()</a></div>
7 <div>http://bugzilla.opendarwin.org/show_bug.cgi?id=9537</div>
8 <form name="f" method="get" action="textarea-hard-linewrap-empty.html">
9 <textarea id="textarea" name="textarea" wrap="hard" cols="5"></textarea>
10 <input type="submit">
11 </form>
12 <script>
13 if (window.layoutTestController) {
14     window.layoutTestController.dumpAsText();
15     window.layoutTestController.waitUntilDone();
16 }
17
18 if (document.URL.indexOf('?') == -1) {
19     document.f.submit();
20 } else {
21     var formData = document.URL.substring(document.URL.indexOf('?') + 1, document.URL.length);
22     if (formData == "textarea=")
23         document.write("Success");
24     else
25         document.write("<div>Failure.</div><div>Expected: textarea=</div><div>Actual: " + formData + "</div>");
26
27     if (window.layoutTestController)
28         window.layoutTestController.notifyDone();
29 }
30 </script>
31 </body>
32 </html>