mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
git-svn-id: https://jsdoc.googlecode.com/svn/trunk/@15 d5942f49-e6af-b5c1-9d01-85772c7ca168
21 lines
857 B
JavaScript
21 lines
857 B
JavaScript
(function() {
|
|
var docSet = testhelpers.getDocSetFromFile('test/cases/innerscope2.js'),
|
|
to = docSet.getByLongname('Message~headers.to'),
|
|
from = docSet.getByLongname('<anonymous>~headers.from'),
|
|
cache = docSet.getByLongname('<anonymous>~headers.cache');
|
|
|
|
//dump(docSet);
|
|
|
|
test('When a var is declared in a function.', function() {
|
|
assert.equal(cache.length, 1, 'It is like Inner~member.');
|
|
});
|
|
|
|
test('When a var is masked by an inner var and a member of the inner is documented.', function() {
|
|
assert.equal(from.length, 1, 'It is like Inner~inner.member.');
|
|
});
|
|
|
|
test('When a documented member is assigned to a var that masks an outer var.', function() {
|
|
assert.equal(from[0].name, 'from');
|
|
assert.equal(from[0].memberof, '<anonymous>~headers');
|
|
});
|
|
})(); |