OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset="utf-8"> |
| 5 <title>Headers basic</title> |
| 6 <meta name="help" href="https://fetch.spec.whatwg.org/#headers"> |
| 7 <meta name="help" href="https://heycam.github.io/webidl/#idl-iterable"> |
| 8 <meta name="author" title="Canon Research France" href="https://www.crf.cano
n.fr"> |
| 9 <script src="/resources/testharness.js"></script> |
| 10 <script src="/resources/testharnessreport.js"></script> |
| 11 </head> |
| 12 <body> |
| 13 <script> |
| 14 var headers = new Headers(); |
| 15 var methods = ["append", |
| 16 "delete", |
| 17 "get", |
| 18 "has", |
| 19 "set", |
| 20 //Headers is iterable |
| 21 "entries", |
| 22 "keys", |
| 23 "values" |
| 24 ]; |
| 25 for (var idx in methods) |
| 26 test(function() { |
| 27 assert_true(methods[idx] in headers, "headers has " + methods[idx] +
" method"); |
| 28 }, "Headers has " + methods[idx] + " method"); |
| 29 </script> |
| 30 </body> |
| 31 </html> |
OLD | NEW |