https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ef8e988d1fa60461cb2275fa85542309a05bf04b authored by Mike Pennisi on 03 April 2018, 22:15:29 UTC
Correct reference to certificate file
Tip revision: ef8e988
basic-auth-cache-test.html
<!doctype html>
<html id="doc" class="reftest-wait">
  <meta charset="utf-8">
  <link rel="match" href="basic-auth-cache-test-ref.html">

  <img id="auth" onload="loadNoAuth()">
  <img id="noauth" onload="removeWait()">


  <script type="text/javascript">
    function loadAuth() {
        var authUrl = 'http://testuser:testpass@' + window.location.host + '/http/resources/securedimage.py';
        document.getElementById('auth').src = authUrl;
    }

    function loadNoAuth() {
        var noAuthUrl = 'http://' + window.location.host + '/http/resources/securedimage.py';
        document.getElementById('noauth').src = noAuthUrl;
    }

    function removeWait() {
        document.getElementById('doc').className = "";
    }

    window.onload = loadAuth;
  </script>
</html>
back to top