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>
n>@echo ...Done\! .PHONY: install install: @echo @echo Installing clinte... @echo @echo Creating directories... mkdir -p $(BINDIR) mkdir -p $(DBDIR) @echo @echo Copying files... install -m755 target/release/clinte $(BINDIR) chmod 777 $(DBDIR) @echo @echo ...Done! .PHONY: test test: @echo @echo Running tests... @echo cargo test @echo @echo ...Done! .PHONY: uninstall uninstall: @echo @echo Uninstalling clinte... @echo @echo Removing files rm -f $(BINDIR)/clinte rm -rf $(DBDIR) @echo @echo ...Done\!