classproperties.js 1.0 KB

123456789101112131415161718192021222324252627282930
  1. 'use strict';
  2. describe('class properties', function() {
  3. var docSet = jasmine.getDocSetFromFile('test/fixtures/classproperties.js');
  4. var b = docSet.getByLongname('A#b')[0];
  5. var c = docSet.getByLongname('A#c')[0];
  6. var d = docSet.getByLongname('A#d')[0];
  7. it('should assign the correct name, memberof, and scope to class properties', function() {
  8. expect(b.name).toBe('b');
  9. expect(b.memberof).toBe('A');
  10. expect(b.scope).toBe('instance');
  11. });
  12. it('should assign the correct name, memberof, scope, and access type to class private ' +
  13. 'properties', function() {
  14. expect(c.name).toBe('c');
  15. expect(c.memberof).toBe('A');
  16. expect(c.scope).toBe('instance');
  17. expect(c.access).toBe('private');
  18. });
  19. it('should assign the correct name, memberof, and scope to class properties with no value ' +
  20. 'assigned', function() {
  21. expect(d.name).toBe('d');
  22. expect(d.memberof).toBe('A');
  23. expect(d.scope).toBe('instance');
  24. });
  25. });