forked from jsdoc/jsdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for @Lends to the global.
- Loading branch information
Showing
6 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
declare({ | ||
globals: /** @lends */ { | ||
|
||
/** document me */ | ||
'test': function() { }, | ||
|
||
/** @namespace */ | ||
'test1': { | ||
|
||
/** document me */ | ||
'test2': function() { } | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(function() { | ||
var docSet = testhelpers.getDocSetFromFile('test/cases/lendsglobal.js'), | ||
testf = docSet.getByLongname('test')[0], | ||
test1 = docSet.getByLongname('test1')[0], | ||
test12 = docSet.getByLongname('test1.test2')[0]; | ||
|
||
//dump(testf, test1, test12); exit(); | ||
|
||
test('When a documented member is inside an objlit associated with a @lends tag that has no value.', function() { | ||
assert.equal(typeof testf.memberof, 'undefined', 'The members of the objlit are not members of any symbol.'); | ||
assert.equal(testf.longname, 'test', 'The members of the objlit are documented as global.'); | ||
|
||
|
||
assert.equal(test12.memberof, 'test1', 'The nested members of the objlit are members of a global symbol.'); | ||
}); | ||
|
||
})(); |