Home | History | Annotate | Download | only in resources

Lines Matching refs:getOwnPropertyDescriptor

1 description("Test to ensure correct behaviour of Object.getOwnPropertyDescriptor");
4 var test = 'Object.getOwnPropertyDescriptor('+object+", "+property+')';
20 shouldBeUndefined("Object.getOwnPropertyDescriptor({}, 'undefinedProperty')");
72 shouldThrow("Object.getOwnPropertyDescriptor(null)");
73 shouldThrow("Object.getOwnPropertyDescriptor(undefined)");
74 shouldThrow("Object.getOwnPropertyDescriptor(1)");
75 shouldThrow("Object.getOwnPropertyDescriptor('')");
76 shouldThrow("Object.getOwnPropertyDescriptor(true)");
77 shouldThrow("Object.getOwnPropertyDescriptor(false)");
83 for (var property in Object.getOwnPropertyDescriptor(Math, "sin"))
86 for (var property in Object.getOwnPropertyDescriptor(objectWithGetter, "getter"))
89 for (var property in Object.getOwnPropertyDescriptor(objectWithSetter, "setter"))
92 for (var property in Object.getOwnPropertyDescriptor(objectWithAccessor, "accessor"))