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

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/password-delete-contents.html

Issue 2753743004: Revive layout test unintentionally removed. (Closed)
Patch Set: Created 3 years, 9 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 | third_party/WebKit/LayoutTests/editing/deleting/password-delete-contents-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/deleting/password-delete-contents.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/password-delete-contents.html b/third_party/WebKit/LayoutTests/editing/deleting/password-delete-contents.html
new file mode 100644
index 0000000000000000000000000000000000000000..3e4461bd458b0bdc177927fb08d23bf21da592a3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/deleting/password-delete-contents.html
@@ -0,0 +1,32 @@
+<!DOCTYPE>
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+</head>
+<body>
+<p id="description">This makes sure we are able to delete the contents of a password field: deleting a selection and evaluating the field contents.</p>
+<div id="console"></div>
+<input type="password" id="passwordField">
+<script>
+
+if (!window.testRunner || !window.internals)
+ testFailed('This test requires access to window.internals');
+
+var textField;
+var desiredString = "hello";
+function runTest(element) {
+ textField = element;
+
+ textField.value = "helllo";
+ textField.focus();
+
+ shouldBe("passwordField.value='helllo'; passwordField.setSelectionRange(3, 4); testRunner.execCommand('Delete', false, null); passwordField.value", "'hello'");
+
+ textField.parentNode.removeChild(textField);
+}
+
+runTest(document.getElementById('passwordField'));
+
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/deleting/password-delete-contents-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698