Bug 992958 - Fix test that depends on the order in which properties are enumerated. r=luke

This commit is contained in:
Bobby Holley 2014-05-23 16:53:02 -07:00
parent 46de7f3690
commit 72ff075307

View File

@ -7,7 +7,8 @@
<script>
test(function() {
var props = Object.getOwnPropertyNames(Object.prototype);
// getOwnPropertyNames doesn't include "__proto__" yet for some reason
// getOwnPropertyNames intentionally filters out the non-standard
// "__proto__" property.
props.push("__proto__");
// If you change this list, make sure it continues to match the list in
// Codegen.py's CGDictionary.getMemberDefinition method.
@ -17,6 +18,6 @@ test(function() {
"propertyIsEnumerable", "__defineGetter__", "__defineSetter__",
"__lookupGetter__", "__lookupSetter__", "__proto__"
];
assert_array_equals(props, expected);
assert_array_equals(props.sort(), expected.sort());
}, "Own properties of Object.prototype");
</script>