Please follow these steps to complete the test:

  1. If you are prompted for user name and password, type in 'usr' and 'secret'

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
FailXMLHttpRequest: WWW-Authenticate challenge when user,pass are not passed to open()assert_equals: expected "usr\nsecret" but got "{\"error\": {\"code\": 500, \"message\": \"Internal server error loading https://xn--n8j6ds53lwwkrqhv28a.wpt.live:443/xhr/resources/auth6/auth.py:\\n Traceback (most recent call last):\\n File \\\"/root/wpt/tools/wptserve/wptserve/handlers.py\\\", line 373, in __call__\\n rv = self.func(request, response)\\n\\n File \\\"/root/wpt/xhr/resources/auth6/auth.py\\\", line 13, in main\\n content += b\\\"%s\\\\n%s\\\" % (request.auth.username,\\n TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'NoneType'\\n\"}}"
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/xhr/send-authentication-prompt-2-manual.htm:21:9)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/xhr/send-authentication-prompt-2-manual.htm:16:7
Asserts run
Fail
assert_equals("{\"error\": {\"code\": 500, \"message\": \"Internal server error loading https://xn--n8j6ds53lwwkrqhv28a.wpt.live:443/xhr/resources/auth6/auth.py:\\n  Traceback (most recent call last):\\n    File \\\"/root/wpt/tools/wptserve/wptserve/handlers.py\\\", line 373, in __call__\\n    rv = self.func(request, response)\\n\\n    File \\\"/root/wpt/xhr/resources/auth6/auth.py\\\", line 13, in main\\n    content += b\\\"%s\\\\n%s\\\" % (request.auth.username,\\n  TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'NoneType'\\n\"}}", "usr\nsecret")
    at Test.<anonymous> ( /xhr/send-authentication-prompt-2-manual.htm:21:9)