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> |