Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-placeholder-set-attribute.html

Issue 1522803002: Move textarea-related tests to fast/forms/textarea/, part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@color-uaf
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698