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

Unified Diff: chrome/test/data/password/dynamic_password_form.html

Issue 22926033: Enable password saving for dynamic password forms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits fixed Created 7 years, 3 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: chrome/test/data/password/dynamic_password_form.html
diff --git a/chrome/test/data/password/dynamic_password_form.html b/chrome/test/data/password/dynamic_password_form.html
new file mode 100644
index 0000000000000000000000000000000000000000..7e19194564a7cef1be5ce8a8ffe809b3dd24a359
--- /dev/null
+++ b/chrome/test/data/password/dynamic_password_form.html
@@ -0,0 +1,34 @@
+<html>
+<head>
+<script>
+function createDynamicForm() {
+ var dynamicForm = document.createElement('form');
+ dynamicForm.setAttribute('name', 'dynamic_form');
+ dynamicForm.setAttribute('method', 'post');
+ dynamicForm.setAttribute('action', 'done.html');
+ dynamicForm.setAttribute('onsubmit', 'return true;');
+
+ var inputUsername = document.createElement('input');
+ inputUsername.setAttribute('type', 'text');
+ inputUsername.setAttribute('name', 'username');
+
+ var inputPassword = document.createElement('input');
+ inputPassword.setAttribute('type', 'password');
+ inputPassword.setAttribute('name', 'password');
+
+ var submitButton = document.createElement('input');
+ submitButton.setAttribute('type', 'submit');
+ submitButton.setAttribute('value', 'Submit');
+
+ dynamicForm.appendChild(inputUsername);
+ dynamicForm.appendChild(inputPassword);
+ dynamicForm.appendChild(submitButton);
+
+ document.body.appendChild(dynamicForm);
+}
+</script>
+</head>
+<body>
+<input type='button' id='create_form_button' onclick='createDynamicForm()'>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698