about summary refs log tree commit diff stats
path: root/test/js/window.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/window.html')
-rw-r--r--test/js/window.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/js/window.html b/test/js/window.html
new file mode 100644
index 00000000..5aef5186
--- /dev/null
+++ b/test/js/window.html
@@ -0,0 +1,11 @@
+<!doctype html>
+<title>Window test</title>
+<div id=x>Fail</div>
+<script src=asserts.js></script>
+<script>
+assert_equals(window.toString(), "[object Window]");
+const desc = Object.getOwnPropertyDescriptor(window, "window");
+assert(desc.enumerable, "window must be enumerable");
+assert(!desc.configurable, "window must not be configurable");
+document.getElementById("x").textContent = "Success";
+</script>