diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader-existing-session.htm')
-rw-r--r-- | tests/wpt/web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader-existing-session.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/wpt/web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader-existing-session.htm b/tests/wpt/web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader-existing-session.htm index 5b8932c2c63..6e68f098cf5 100644 --- a/tests/wpt/web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader-existing-session.htm +++ b/tests/wpt/web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader-existing-session.htm @@ -25,7 +25,7 @@ client.setRequestHeader('X-User', open_user) // initial request - this will get a 401 response and re-try with HTTP auth client.send(null) - assert_equals(client.responseText, open_user + '\nopen-pass') + assert_true(client.responseText == (open_user + '\nopen-pass'), 'responseText should contain the right user and password') assert_equals(client.status, 200) assert_equals(client.getResponseHeader('x-challenge'), 'DID') // Another request, this time user,pass is omitted and an Authorization header set explicitly |