<!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.py", false, "foo", "bar");
    xhr.send("");
}

function sendWithoutCredentials()
{
    var xhr = new XMLHttpRequest;
    xhr.open("GET", "resources/remember-bad-password//count-failures.py", false);
    xhr.send("");
}

function reset()
{
    var xhr = new XMLHttpRequest;
    xhr.open("GET", "resources/remember-bad-password/count-failures.py?command=reset", false);
    xhr.send("");
}

sendWithCredentials();
sendWithoutCredentials();
reset();
</script>
<p>PASS did not cause assertion failure.</p>
</body>
</html>
