diff options
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> |