2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
8 <script type=
"application/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
12 <script type=
"application/javascript">
13 function testConstructor(name)
15 window[name]; // resolve not through assignment
18 var desc = Object.getOwnPropertyDescriptor(window, name);
19 ok(typeof desc ===
"object" && desc !== null, name +
": property must exist");
21 is(desc.value,
17, name +
": overwrite didn't work correctly");
22 is(desc.enumerable, false,
23 name +
": initial descriptor was non-enumerable, and [[Put]] changes " +
24 "the property value but not its enumerability");
25 is(desc.configurable, true,
26 name +
": initial descriptor was configurable, and [[Put]] changes the " +
27 "property value but not its configurability");
28 is(desc.writable, true,
29 name +
": initial descriptor was writable, and [[Put]] changes the " +
30 "property value but not its writability");
38 "HTMLParagraphElement",
58 ctors.forEach(testConstructor);