Request headers

Summary

Harness status: OK

Found 6 tests

Details

ResultTest NameMessage
Failbasic request headerFailed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=x-print'.
Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=x-print'.
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/request-headers.htm:22:12)
    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/cors/request-headers.htm:18:1
Asserts runNo asserts ran
FailSimple request headers need not be in allow-headersFailed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=x-print,'.
Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=x-print,'.
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/request-headers.htm:36:12)
    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/cors/request-headers.htm:28:1
Asserts runNo asserts ran
PassUnspecified request headers are disallowed
Asserts run
Pass
assert_throws_dom("NetworkError", function "function() { client.send(null) }")
    at Test.<anonymous> ( /cors/request-headers.htm:51:5)
FailStrange allowheaders (case insensitive)Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=,y-lol,x-PriNT,%20,,,Y-PRINT'.
Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=,y-lol,x-PriNT,%20,,,Y-PRINT'.
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/request-headers.htm:59:12)
    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/cors/request-headers.htm:54:1
Asserts runNo asserts ran
PassINVALID_STATE_ERR on setRequestHeader before open()
Asserts run
Pass
assert_throws_dom("INVALID_STATE_ERR", function "function() { client.setRequestHeader('x-print', 'unicorn') }")
    at Test.<anonymous> ( /cors/request-headers.htm:68:5)
FailINVALID_STATE_ERR on setRequestHeader after send()Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=,y-lol,x-PriNT,%20,,,Y-PRINT'.
Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=,y-lol,x-PriNT,%20,,,Y-PRINT'.
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/request-headers.htm:75:12)
    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/cors/request-headers.htm:72:1
Asserts runNo asserts ran