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

Unified Diff: LayoutTests/fast/text/caps-lock-indicator-enabled.html

Issue 1177043016: [SP] Add a drawing recorder before painting caps lock indicator in password fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add layout tests and caps lock override hook for Internals. Created 5 years, 6 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
Index: LayoutTests/fast/text/caps-lock-indicator-enabled.html
diff --git a/LayoutTests/fast/text/caps-lock-indicator-enabled.html b/LayoutTests/fast/text/caps-lock-indicator-enabled.html
new file mode 100644
index 0000000000000000000000000000000000000000..39720c7b47993dd2a3ce28c57c1af266267b100a
--- /dev/null
+++ b/LayoutTests/fast/text/caps-lock-indicator-enabled.html
@@ -0,0 +1,8 @@
+<!doctype html>
+Test passes if password field includes caps lock icon on right edge on Mac platforms only.<br>
+<input id="password" type="password" style="display: inline;">
+<script>
+ if (window.internals)
+ window.internals.setCurrentCapsLockState(true);
+ password.focus();
+</script>

Powered by Google App Engine
This is Rietveld 408576698