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