mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-21 11:40:34 -10:00
Automatic update from web-platform-tests Fetch: make fetch/api/headers strict mode compatible -- wpt-commits: 5da66cd389ccb0acdf9ffeb38f19efcde406424c wpt-pr: 28520
21 lines
536 B
JavaScript
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");
|