| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 | 2 |
| 3 function finishTest() | 3 function finishTest() |
| 4 { | 4 { |
| 5 document.getElementById('textarea').setAttribute('placeholder','Placeholder'
); | 5 document.getElementById('textarea').setAttribute('placeholder','Placeholder'
); |
| 6 if (window.testRunner) | 6 if (window.testRunner) |
| 7 testRunner.notifyDone(); | 7 testRunner.notifyDone(); |
| 8 } | 8 } |
| 9 | 9 |
| 10 function test() | 10 function test() |
| 11 { | 11 { |
| 12 if (window.testRunner) | 12 if (window.testRunner) |
| 13 testRunner.waitUntilDone(); | 13 testRunner.waitUntilDone(); |
| 14 setTimeout(finishTest, 0); | 14 setTimeout(finishTest, 0); |
| 15 } | 15 } |
| 16 | 16 |
| 17 </script> | 17 </script> |
| 18 <body onload="test()"> | 18 <body onload="test()"> |
| 19 <p>If you can see the word "Placeholder" in the text area, then all is well.</p> | 19 <p>If you can see the word "Placeholder" in the text area, then all is well.</p> |
| 20 <p><textarea id="textarea"></textarea></p> | 20 <p><textarea id="textarea"></textarea></p> |
| 21 </body> | 21 </body> |
| OLD | NEW |