definegettersetter.baseline 2.0 KB

123456789101112131415161718192021222324252627282930
  1. *** Running test #1 (test01): __defineGetter__ defines an accessor property with getter as specified and enumerable and configurable set to true
  2. PASSED
  3. *** Running test #2 (test02): __defineSetter__ defines an accessor property with getter as specified and enumerable and configurable set to true
  4. PASSED
  5. *** Running test #3 (test03): __defineGetter__ should not assign a setter and __defineSetter__ should not define a getter
  6. PASSED
  7. *** Running test #4 (test04): get and set functions should have access to the object's properties via this
  8. PASSED
  9. *** Running test #5 (test05): __defineGetter__ and __defineSetter__ called on the same property are additive; they do not clobber previous accessor
  10. PASSED
  11. *** Running test #6 (test06): __defineGetter__ and __defineSetter__ only allow functions as the accessor argument
  12. PASSED
  13. *** Running test #7 (test07): __defineGetter__ and __defineSetter__ overwrite existing property descriptors when configurable, otherwise throws
  14. PASSED
  15. *** Running test #8 (test08): __defineGetter__ and __defineSetter__ should work regardless whether Object.defineProperty is changed by the user or not
  16. PASSED
  17. *** Running test #9 (test09): __defineGetter__ and __defineSetter__ both have length 2 and __lookupGetter__ and __lookupSetter__ both have length 1
  18. PASSED
  19. *** Running test #10 (test10): __defineGetter__ and __defineSetter__ should throw TypeError with null/undefined this argument
  20. PASSED
  21. *** Running test #11 (test11): __lookupGetter__ and __lookupSetter__ find getters and setters of the given name on the calling object respectively
  22. PASSED
  23. *** Running test #12 (test12): __lookupGetter__ and __lookupSetter__ should look for accessors up the prototype chain
  24. PASSED
  25. *** Running test #13 (test13): __lookupGetter__ and __lookupSetter__ should look for accessors up the prototype chain
  26. undefined
  27. PASSED
  28. *** Running test #14 (test14): __defineGetter__ and __defineSetter__ should throw TypeError when the object specified as getter/setter is not callable
  29. PASSED
  30. Summary of tests: total executed: 14; passed: 14; failed: 0