about summary refs log tree commit diff stats
path: root/test/js/xhr.html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-08-15 19:11:49 +0200
committerbptato <nincsnevem662@gmail.com>2024-08-15 19:23:55 +0200
commit4bf895db711f3d4d229d3f18fbb2145cce2a73af (patch)
tree2e81c7399de03aebb9dfa166eba6ee809a75cd2e /test/js/xhr.html
parent885a3493b6cad4b4247a200928fe61e41883aaba (diff)
downloadchawan-4bf895db711f3d4d229d3f18fbb2145cce2a73af.tar.gz
xhr: more progress
* add responseText, response
* add net tests
	-> currently sync XHR only; should find a way to do async
	   tests...
* update monoucha
	-> simplified & updated some related code that no longer worked
	   properly
Diffstat (limited to 'test/js/xhr.html')
-rw-r--r--test/js/xhr.html17
1 files changed, 0 insertions, 17 deletions
diff --git a/test/js/xhr.html b/test/js/xhr.html
deleted file mode 100644
index 4bd66b95..00000000
--- a/test/js/xhr.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!doctype html>
-<title>onclick setter/getter</title>
-<div id=x>Fail</div>
-<script src=asserts.js></script>
-<script>
-const x = new XMLHttpRequest();
-assert(x.onreadystatechange === null);
-function myFunction() {
-	console.log("change");
-}
-x.onreadystatechange = myFunction;
-assert(myFunction === x.onreadystatechange);
-assert(x.readyState === XMLHttpRequest.UNSENT);
-x.open("GET", "");
-document.getElementById("x").textContent = "Success";
-x.send();
-</script>