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

Unified Diff: LayoutTests/editing/pasteboard/copy-in-password-field.html

Issue 222023002: focus() behaviour differs depending on how value is set (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing 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 | « LayoutTests/TestExpectations ('k') | LayoutTests/editing/pasteboard/copy-in-password-field-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/pasteboard/copy-in-password-field.html
diff --git a/LayoutTests/editing/pasteboard/copy-in-password-field.html b/LayoutTests/editing/pasteboard/copy-in-password-field.html
index f9e1ccd77fc0a6a428c0bc9fb7a82c7b92c5c000..c2ab61b9ea3eeb3ebf5e596a694cd08c18161453 100644
--- a/LayoutTests/editing/pasteboard/copy-in-password-field.html
+++ b/LayoutTests/editing/pasteboard/copy-in-password-field.html
@@ -8,14 +8,17 @@
// Overwrite the old pasteboard with default results
document.getElementById("text").focus();
+ document.getElementById("text").select();
document.execCommand("Copy");
// Try to copy a password
document.getElementById("password").focus();
+ document.getElementById("password").select();
document.execCommand("Copy");
// Paste
document.getElementById("text").focus();
+ document.getElementById("text").select();
document.execCommand("Paste");
shouldBe('document.getElementById("text").value', '"[not modified]"');
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/editing/pasteboard/copy-in-password-field-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698