about summary refs log blame commit diff stats
path: root/test/js/headers.html
blob: ef836f40cced86ccf0c135d6ce989d6ae682f5a9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
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>