| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 </head> | |
| 4 <body> | |
| 5 <div>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=9537"> | |
| 6 Bug 9537 REGRESSION: Reproducible crash in WebCore::LayoutTextField::textWithHar
dLineBreaks()</a></div> | |
| 7 <div>https://bugs.webkit.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.testRunner) { | |
| 14 window.testRunner.dumpAsText(); | |
| 15 window.testRunner.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, documen
t.URL.length); | |
| 22 if (formData == "textarea=") | |
| 23 document.write("Success"); | |
| 24 else | |
| 25 document.write("<div>Failure.</div><div>Expected: textarea=</div><div>Ac
tual: " + formData + "</div>"); | |
| 26 | |
| 27 if (window.testRunner) | |
| 28 window.testRunner.notifyDone(); | |
| 29 } | |
| 30 </script> | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |