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

Unified Diff: LayoutTests/fast/text/caps-lock-indicator-disabled.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-disabled.html
diff --git a/LayoutTests/fast/text/caps-lock-indicator-disabled.html b/LayoutTests/fast/text/caps-lock-indicator-disabled.html
new file mode 100644
index 0000000000000000000000000000000000000000..164f4e6d7e77c5eeb03182877d75e2aec9ac56fd
--- /dev/null
+++ b/LayoutTests/fast/text/caps-lock-indicator-disabled.html
@@ -0,0 +1,8 @@
+<!doctype html>
+Test passes if password field does not include caps lock icon on right edge on any platform.<br>
+<input id="password" type="password" style="display: inline;">
+<script>
+ if (window.internals)
+ window.internals.setCurrentCapsLockState(false);
+ password.focus();
+</script>

Powered by Google App Engine
This is Rietveld 408576698