mirror of
https://github.com/servo/servo.git
synced 2025-06-26 01:54:33 +01:00
20 lines
536 B
JavaScript
20 lines
536 B
JavaScript
// META: title=Headers basic
|
|
// META: global=window,worker
|
|
|
|
"use strict";
|
|
|
|
var headers = new Headers();
|
|
var methods = ["append",
|
|
"delete",
|
|
"get",
|
|
"has",
|
|
"set",
|
|
//Headers is iterable
|
|
"entries",
|
|
"keys",
|
|
"values"
|
|
];
|
|
for (var idx in methods)
|
|
test(function() {
|
|
assert_true(methods[idx] in headers, "headers has " + methods[idx] + " method");
|
|
}, "Headers has " + methods[idx] + " method");
|