variations.js 925 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. describe('variations by name', function() {
  3. var docSet = jasmine.getDocSetFromFile('test/fixtures/variations.js');
  4. var fadein1 = docSet.getByLongname('anim.fadein(1)')[0];
  5. var fadein2 = docSet.getByLongname('anim.fadein(2)')[0];
  6. it('When a symbol has a name with a variation, the doclet has a variation property.', function() {
  7. expect(fadein1.variation).toBe('1');
  8. expect(fadein2.variation).toBe('2');
  9. });
  10. it('When a symbol has a name with a variation in the name, the doclet name has no variation in it.', function() {
  11. expect(fadein1.name).toBe('fadein');
  12. expect(fadein2.name).toBe('fadein');
  13. });
  14. it('When a symbol has a name with a variation in the name, the doclet longname has the variation in it.', function() {
  15. expect(fadein1.longname).toBe('anim.fadein(1)');
  16. expect(fadein2.longname).toBe('anim.fadein(2)');
  17. });
  18. });