blob: 85cfefb8a427a2b3651e01ea9a2c5b8211247e5b [file] [log] [blame]
<html>
<head>
</head>
<body>
<div>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=9537">
Bug 9537 REGRESSION: Reproducible crash in WebCore::RenderTextField::textWithHardLineBreaks()</a></div>
<div>https://bugs.webkit.org/show_bug.cgi?id=9537</div>
<form name="f" method="get" action="textarea-hard-linewrap-empty.html">
<textarea id="textarea" name="textarea" wrap="hard" cols="5"></textarea>
<input type="submit">
</form>
<script>
if (window.testRunner) {
window.testRunner.dumpAsText();
window.testRunner.waitUntilDone();
}
if (document.URL.indexOf('?') == -1) {
document.f.submit();
} else {
var formData = document.URL.substring(document.URL.indexOf('?') + 1, document.URL.length);
if (formData == "textarea=")
document.write("Success");
else
document.write("<div>Failure.</div><div>Expected: textarea=</div><div>Actual: " + formData + "</div>");
if (window.testRunner)
window.testRunner.notifyDone();
}
</script>
</body>
</html>