mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
added test that verifies proper basic auth caching behavior
This commit is contained in:
parent
0bcd04d2ab
commit
712b1d5ea0
5 changed files with 66 additions and 1 deletions
15
tests/wpt/web-platform-tests/http/basic-auth-cache-test.html
Normal file
15
tests/wpt/web-platform-tests/http/basic-auth-cache-test.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue