Added test cases for @memberof! tag.

This commit is contained in:
Michael Mathews 2011-10-15 20:46:12 +01:00
parent 39b5e09bb6
commit 39667e6b47
3 changed files with 15 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{
"name": "JSDoc",
"version": "3.0.0alpha",
"revision": "1318622611401",
"revision": "1318707954271",
"description": "An automatic documentation generator for javascript.",
"keywords": [ "documentation", "javascript" ],
"licenses": [

View File

@ -140,6 +140,7 @@ testFile('test/t/cases/moduleinner.js');
testFile('test/t/cases/memberoftag.js');
testFile('test/t/cases/memberoftag2.js');
testFile('test/t/cases/memberoftag3.js');
testFile('test/t/cases/memberoftagforced.js');
testFile('test/t/cases/moduletag.js');
testFile('test/t/cases/moduletag2.js');
testFile('test/t/cases/paramtag.js');

View File

@ -0,0 +1,13 @@
(function() {
var docSet = testhelpers.getDocSetFromFile('test/cases/memberoftagforced.js'),
maproutes = docSet.getByLongname('map.routes')[0],
datapointy = docSet.getByLongname('Data#point.y')[0];
test('A nested symbol with a @memberof! tag set to <global>.', function() {
assert.equal(maproutes.name, 'map.routes', 'Has a shortname that includes the nested names.');
});
test('A nested symbol with a @memberof! tag set to another symbol.', function() {
assert.equal(datapointy.name, 'point.y', 'Has a shortname that includes the nested names.');
});
})();