Files
firefox/testing/web-platform/tests/fetch/api/headers/headers-structure.any.js
Luca Casonato afb74182f6 Bug 1705464 [wpt PR 28520] - chore: make fetch/api/headers strict compatible, a=testonly
Automatic update from web-platform-tests
Fetch: make fetch/api/headers strict mode compatible

--

wpt-commits: 5da66cd389ccb0acdf9ffeb38f19efcde406424c
wpt-pr: 28520
2021-04-24 15:47:23 +00:00

21 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");