about summary refs log tree commit diff stats
path: root/test/js/text.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/text.html')
-rw-r--r--test/js/text.html9
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>
rtik/mu/blame/browse-slack/README.md?h=main&id=4a3258f9d38a47fa8576b713aa4e233c6ac2e87b'>^
4a3258f9 ^


7784855c ^

4a3258f9 ^
fb703575 ^
4a3258f9 ^
fb703575 ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21