headers-errors.any.html
Details
- Test
/fetch/api/headers/headers-errors.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | Create headers giving an array having one string as init argument |
| PASS | Create headers giving an array having three strings as init argument |
| FAIL | Create headers giving bad header name as init argument assert_throws_js: function "function() { new Headers([["invalidĀ", "Value1"]]); }" did not throw |
| FAIL | Create headers giving bad header value as init argument assert_throws_js: function "function() { new Headers([["name", "invalidValueĀ"]]); }" did not throw |
| FAIL | Check headers get with an invalid name invalidĀ assert_throws_js: function "function() { headers.get(name); }" did not throw |
| PASS | Check headers get with an invalid name [object Object] |
| FAIL | Check headers delete with an invalid name invalidĀ assert_throws_js: function "function() { headers.delete(name); }" did not throw |
| PASS | Check headers delete with an invalid name [object Object] |
| FAIL | Check headers has with an invalid name invalidĀ assert_throws_js: function "function() { headers.has(name); }" did not throw |
| PASS | Check headers has with an invalid name [object Object] |
| FAIL | Check headers set with an invalid name invalidĀ assert_throws_js: function "function() { headers.set(name, "Value1"); }" did not throw |
| PASS | Check headers set with an invalid name [object Object] |
| FAIL | Check headers set with an invalid value invalidĀ assert_throws_js: function "function() { headers.set("name", value); }" did not throw |
| FAIL | Check headers append with an invalid name invalidĀ assert_throws_js: function "function() { headers.append("invalidĀ", "Value1"); }" did not throw |
| FAIL | Check headers append with an invalid name [object Object] assert_throws_js: function "function() { headers.append("invalidĀ", "Value1"); }" did not throw |
| FAIL | Check headers append with an invalid value invalidĀ assert_throws_js: function "function() { headers.append("name", value); }" did not throw |
| PASS | Headers forEach throws if argument is not callable |
| PASS | Headers forEach loop should stop if callback is throwing exception |