| <!DOCTYPE html> |
| <html> |
| <body> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText() |
| |
| function sendWithCredentials() |
| { |
| var xhr = new XMLHttpRequest; |
| xhr.open("GET", "resources/remember-bad-password/count-failures.php", false, "foo", "bar"); |
| xhr.send(""); |
| } |
| |
| function sendWithoutCredentials() |
| { |
| var xhr = new XMLHttpRequest; |
| xhr.open("GET", "resources/remember-bad-password//count-failures.php", false); |
| xhr.send(""); |
| } |
| |
| function reset() |
| { |
| var xhr = new XMLHttpRequest; |
| xhr.open("GET", "resources/remember-bad-password/count-failures.php?command=reset", false); |
| xhr.send(""); |
| } |
| |
| sendWithCredentials(); |
| sendWithoutCredentials(); |
| reset(); |
| </script> |
| <p>PASS did not cause assertion failure.</p> |
| </body> |
| </html> |