summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/fetch/api/headers/headers-structure.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wpt/tests/fetch/api/headers/headers-structure.any.js')
-rw-r--r--test/wpt/tests/fetch/api/headers/headers-structure.any.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/wpt/tests/fetch/api/headers/headers-structure.any.js b/test/wpt/tests/fetch/api/headers/headers-structure.any.js
new file mode 100644
index 0000000..d826bca
--- /dev/null
+++ b/test/wpt/tests/fetch/api/headers/headers-structure.any.js
@@ -0,0 +1,20 @@
+// 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");