mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
consumes ASTs that follow the Mozilla Parser API spec: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API passes all tests on OS X; performance is comparable to previous version. also includes some miscellaneous cleanup. remaining issues: - only Rhino AST builder is supported - node visitors (old and new) may not be hooked up yet - circular-reference issues in doclets - docs are (mostly) missing - various other TODO comments
17 lines
556 B
JavaScript
17 lines
556 B
JavaScript
/*global describe: true, expect: true, it: true, jasmine: true */
|
|
describe("virtual symbols", function() {
|
|
var docSet = jasmine.getDocSetFromFile('test/fixtures/virtual.js');
|
|
var found = [
|
|
docSet.getByLongname('dimensions'),
|
|
docSet.getByLongname('width')
|
|
];
|
|
|
|
it('should document virtual symbols', function() {
|
|
expect(found[0].length).toEqual(1);
|
|
});
|
|
|
|
it('should document an undocumented symbol found after a comment for a virtual symbol', function() {
|
|
expect(found[1].length).toEqual(1);
|
|
});
|
|
});
|