| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <base href="done"> |
| 4 |
| 3 <script> | 5 <script> |
| 4 | 6 |
| 5 var navigate = true; | 7 var navigate = true; |
| 6 | 8 |
| 7 // TODO(gcasto): Not sure why this is necessary, but calling | 9 // TODO(gcasto): Not sure why this is necessary, but calling |
| 8 // window.domAutomationController directly in setTimeout seemt to causes the | 10 // window.domAutomationController directly in setTimeout seemt to causes the |
| 9 // function to be evaluated inline. | 11 // function to be evaluated inline. |
| 10 function delayedUpload() { | 12 function delayedUpload() { |
| 11 window.domAutomationController.send("XHR_FINISHED"); | 13 window.domAutomationController.send("XHR_FINISHED"); |
| 12 } | 14 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 31 function send_xhr() { | 33 function send_xhr() { |
| 32 var xhr = new XMLHttpRequest(); | 34 var xhr = new XMLHttpRequest(); |
| 33 xhr.onreadystatechange = function() { state_changed(xhr); }; | 35 xhr.onreadystatechange = function() { state_changed(xhr); }; |
| 34 xhr.open("GET", "password_xhr_submit.html", true); | 36 xhr.open("GET", "password_xhr_submit.html", true); |
| 35 xhr.send(null); | 37 xhr.send(null); |
| 36 } | 38 } |
| 37 | 39 |
| 38 </script> | 40 </script> |
| 39 </head> | 41 </head> |
| 40 <body> | 42 <body> |
| 41 <form action="password_xhr_submit.html" onsubmit="send_xhr(); return false;" | 43 <form onsubmit="send_xhr(); return false;" id="testform"> |
| 42 id="testform"> | |
| 43 <input type="text" id="username_field" name="username_field"> | 44 <input type="text" id="username_field" name="username_field"> |
| 44 <input type="password" id="password_field" name="password_field"> | 45 <input type="password" id="password_field" name="password_field"> |
| 45 <input type="submit" id="submit_button" name="submit_button"> | 46 <input type="submit" id="submit_button" name="submit_button"> |
| 46 </form> | 47 </form> |
| 47 | 48 |
| 48 <form action="password_xhr_submit.html" onsubmit="send_xhr(); return false;" | 49 <form action="password_xhr_submit.html" onsubmit="send_xhr(); return false;" |
| 49 id="signup_testform"> | 50 id="signup_testform"> |
| 50 <input type="text" id="signup_username_field" name="signup_username_field"> | 51 <input type="text" id="signup_username_field" name="signup_username_field"> |
| 51 <input type="password" id="signup_password_field" | 52 <input type="password" id="signup_password_field" |
| 52 name="signup_password_field" autocomplete="new-password"> | 53 name="signup_password_field" autocomplete="new-password"> |
| 53 <input type="password" id="confirmation_password_field" | 54 <input type="password" id="confirmation_password_field" |
| 54 name="confirmation_password_field" autocomplete="new-password"> | 55 name="confirmation_password_field" autocomplete="new-password"> |
| 55 <input type="submit" id="signup_submit_button" name="signup_submit_button"> | 56 <input type="submit" id="signup_submit_button" name="signup_submit_button"> |
| 56 </form> | 57 </form> |
| 57 </body> | 58 </body> |
| 58 </html> | 59 </html> |
| OLD | NEW |