forked from jsdoc/jsdoc
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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,2 @@ | ||
/** Inline Comment 1 */ this.test = function(){} | ||
/** Inline Comment 2 */ this.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,10 @@ | ||
(function() { | ||
var docSet = testhelpers.getDocSetFromFile('test/cases/inlinecomment.js'), | ||
t = docSet.getByLongname('test'), | ||
t2 = docSet.getByLongname('test2'); | ||
|
||
test('When there is an inline comment on a line ending with no semicolon, that comment and the next comment are still captured', function() { | ||
assert.equal(t.length, 1, "Inline comment on line without semicolon is captured"); | ||
assert.equal(t2.length, 1, "Inline comment on line after line without semicolon is captured"); | ||
}); | ||
})(); |