| <!-- |
| This page has a resource that takes a very long time to load. Nevetheless, a |
| hidden password form is created dynamically. It should be autofilled and |
| successful submission should be detected. |
| --> |
| <html> |
| <head> |
| <script src="form_utils.js"></script> |
| <script> |
| function addDynamicForm() { |
| var form = createSimplePasswordForm(); |
| form.style.display = 'none'; |
| document.body.appendChild(form); |
| } |
| document.addEventListener("DOMContentLoaded", function(event) { |
| // Add the form some time after the DOM was loaded. It means that the form |
| // won't be detected during DidFinishDocumentLoad() stage. |
| setTimeout(addDynamicForm); |
| }); |
| </script> |
| <title>Test dynamically created password form</title> |
| </head> |
| <body> |
| <img src="/slow?100"> |
| </body> |
| </html> |