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/outerhtml.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/outerhtml.html')
| -rw-r--r-- | test/js/outerhtml.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/js/outerhtml.html b/test/js/outerhtml.html index 5c30bc52..8e4bbd2c 100644 --- a/test/js/outerhtml.html +++ b/test/js/outerhtml.html @@ -1,9 +1,9 @@ <!doctype html> <title>innerHTML test</title> <div id="test">Fail</div> +<script src=asserts.js></script> <script> const div = document.getElementById("test"); -if (div.outerHTML != '<div id="test">Fail</div>') - throw new TypeError("invalid outerHTML " + div.outerHTML); +assert_equals(div.outerHTML, '<div id="test">Fail</div>'); div.textContent = "Success"; </script> |