added test that verifies proper basic auth caching behavior

This commit is contained in:
Bryan Gilbert 2016-09-15 12:33:31 -04:00
parent 0bcd04d2ab
commit 712b1d5ea0
5 changed files with 66 additions and 1 deletions

View file

@ -0,0 +1,15 @@
<!doctype html>
<meta charset="utf-8">
<link rel="match" href="basic-auth-cache-test-ref.html">
<html>
<div id="auth"> </div>
<div id="noauth"> </div>
<script type="text/javascript">
var authImg = '<img src="http://testuser:testpass@' + window.location.host + '/http/resources/securedimage.py">';
document.getElementById('auth').innerHTML = authImg;
setTimeout(function() {
var noAuthImg = '<img src="http://' + window.location.host + '/http/resources/securedimage.py">';
document.getElementById('noauth').innerHTML = noAuthImg;
}, 100);
</script>
</html>