diff options
author | bptato <nincsnevem662@gmail.com> | 2024-05-04 19:43:42 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-05-04 20:06:58 +0200 |
commit | 63442e5f8be17631a91cee352e441f59daa2df0a (patch) | |
tree | d546f8c0bf6884464ace32f2a083ce5098e064b1 /test/js/text.html | |
parent | 970378356d0d7239b332baa37470455391b5e6e4 (diff) | |
download | chawan-63442e5f8be17631a91cee352e441f59daa2df0a.tar.gz |
client: make quit() actually quit, misc fixes
* unwind the QJS stack with an uncatchable exception when quit is called * clean up JS references in JSRuntime free even when the Nim counterparts are still alive * simplify some tests
Diffstat (limited to 'test/js/text.html')
-rw-r--r-- | test/js/text.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/js/text.html b/test/js/text.html index 7d7bcfca..8a511868 100644 --- a/test/js/text.html +++ b/test/js/text.html @@ -1,8 +1,7 @@ <!doctype html> -<div id="succ">Fail</div> +<div id=x>Fail</div> +<script src=asserts.js></script> <script> -(function() { - if (new Text("data").ownerDocument != document) return; - document.getElementById("succ").textContent = "Success" -})() +assert_equals(new Text("data").ownerDocument, document); +document.getElementById("x").textContent = "Success"; </script> |