Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / suggested-value-hides-placeholder.html
blob1ba91acd29c9459143e1f88863183e3c63048706
1 <html>
2 <body>
3 <p>Test for <a href="https://code.google.com/p/chromium/issues/detail?id=362607">https://code.google.com/p/chromium/issues/detail?id=362607</a>.</p> Makes sure that the placeholder text is hidden by a suggested value.
5 <input placeholder="placeholder text"></input>
6 <textarea placeholder="placeholder text"></textarea>
8 <script type="text/javascript" charset="utf-8">
9 if (!window.internals) {
10 testFailed('This test requires internals object');
11 } else {
12 internals.setSuggestedValue(document.querySelector('input'), 'suggest');
13 internals.setSuggestedValue(document.querySelector('textarea'), 'suggest');
15 </script>
16 </body>
17 </html>