blob: 5aef51868a0354c5e13ab05640289c662204a26b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
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>
|