diff options
Diffstat (limited to 'test/js/headers.html')
-rw-r--r-- | test/js/headers.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/js/headers.html b/test/js/headers.html new file mode 100644 index 00000000..ef836f40 --- /dev/null +++ b/test/js/headers.html @@ -0,0 +1,12 @@ +<!doctype html> +<title>Headers object test</title> +<div id=x>Fail</div> +<script src=asserts.js></script> +<script> +const x = new Headers(); +x.append("hi", "world"); +assert_equals(x.get("hi"), "world"); +assert_equals(x.get("Hi"), "world"); +assert_equals(x.get("hI"), "world"); +document.getElementById("x").textContent = "Success"; +</script> |