ggaren | 658055d | 2005-11-30 21:53:33 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <script> |
| 4 | function print(message) { |
| 5 | var paragraph = document.createElement("p"); |
| 6 | paragraph.appendChild(document.createTextNode(message)); |
| 7 | document.getElementById("console").appendChild(paragraph); |
| 8 | } |
| 9 | |
| 10 | function test() { |
rniwa@webkit.org | ea3cf92 | 2012-06-22 06:52:33 +0000 | [diff] [blame] | 11 | if (window.testRunner) { |
| 12 | testRunner.dumpAsText(); |
ggaren | 658055d | 2005-11-30 21:53:33 +0000 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | var e = document.createElement("textarea"); |
| 16 | e.value = "success"; |
| 17 | document.getElementsByTagName("body")[0].appendChild(e); |
| 18 | print("value of textarea element is: " + e.value); |
| 19 | } |
| 20 | </script> |
| 21 | </head> |
| 22 | <body onload="test();"> |
| 23 | <p>This test checks for a regression against <i><rdar://problem/4344760> Glendale REGRESSION (Safari 416.12-417.2) gmail 'reply' does not fill in to: field or quoted message</i>. Specifically, it checks to make sure that a textarea element created without a renderer maintains its value after it gains a renderer.</p> |
| 24 | <p>If the test passes, you will see a value of "success" below.</p> |
| 25 | <hr> |
| 26 | <div id='console'/> |
| 27 | </body> |
| 28 | </html> |