Blame dom/bindings/test/test_Object.prototype_props.html
|
Packit |
f0b94e |
|
|
Packit |
f0b94e |
<meta charset=utf-8>
|
|
Packit |
f0b94e |
<title>Test for bug 987110</title>
|
|
Packit |
f0b94e |
<script src="/resources/testharness.js"></script>
|
|
Packit |
f0b94e |
<script src="/resources/testharnessreport.js"></script>
|
|
Packit |
f0b94e |
|
|
Packit |
f0b94e |
<script>
|
|
Packit |
f0b94e |
test(function() {
|
|
Packit |
f0b94e |
var props = Object.getOwnPropertyNames(Object.prototype);
|
|
Packit |
f0b94e |
// If you change this list, make sure it continues to match the list in
|
|
Packit |
f0b94e |
// Codegen.py's CGDictionary.getMemberDefinition method.
|
|
Packit |
f0b94e |
var expected = [
|
|
Packit |
f0b94e |
"constructor", "toSource", "toString", "toLocaleString", "valueOf",
|
|
Packit |
f0b94e |
"hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable",
|
|
Packit |
f0b94e |
"__defineGetter__", "__defineSetter__", "__lookupGetter__",
|
|
Packit |
f0b94e |
"__lookupSetter__", "__proto__"
|
|
Packit |
f0b94e |
];
|
|
Packit |
f0b94e |
assert_array_equals(props.sort(), expected.sort());
|
|
Packit |
f0b94e |
}, "Own properties of Object.prototype");
|
|
Packit |
f0b94e |
</script>
|