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

Unified Diff: LayoutTests/fast/forms/suggested-value-hides-placeholder.html

Issue 236033002: Hide textarea placeholder text when showing autofill suggestion (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: now with layout test Created 6 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/forms/suggested-value-hides-placeholder-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/suggested-value-hides-placeholder.html
diff --git a/LayoutTests/fast/forms/suggested-value-hides-placeholder.html b/LayoutTests/fast/forms/suggested-value-hides-placeholder.html
new file mode 100644
index 0000000000000000000000000000000000000000..1ba91acd29c9459143e1f88863183e3c63048706
--- /dev/null
+++ b/LayoutTests/fast/forms/suggested-value-hides-placeholder.html
@@ -0,0 +1,17 @@
+<html>
+<body>
+ <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.
+
+ <input placeholder="placeholder text"></input>
+ <textarea placeholder="placeholder text"></textarea>
+
+ <script type="text/javascript" charset="utf-8">
+ if (!window.internals) {
+ testFailed('This test requires internals object');
+ } else {
+ internals.setSuggestedValue(document.querySelector('input'), 'suggest');
+ internals.setSuggestedValue(document.querySelector('textarea'), 'suggest');
+ }
+ </script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/suggested-value-hides-placeholder-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698