diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-08-13 22:48:12 +0200 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-08-13 23:03:41 +0200 |
| commit | 885a3493b6cad4b4247a200928fe61e41883aaba (patch) | |
| tree | 2b823ef18043c775f21b8ad723c826ffdc6b2663 /test | |
| parent | 968de41082280dde47bac7c2bb59522284b4c672 (diff) | |
| download | chawan-885a3493b6cad4b4247a200928fe61e41883aaba.tar.gz | |
xhr: progress
* fix header case sensitivity issues
-> probably still wrong as it discards the original
casing. better than nothing, anyway
* fix fulfill on generic promises
* support standard open() async parameter weirdness
* refactor loader response body reading (so bodyRead is no longer
mandatory)
* actually read response body
still missing: response body getters
Diffstat (limited to 'test')
| -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> |