Skip to content

Commit

Permalink
fix and tests for jsdoc#55
Browse files Browse the repository at this point in the history
  • Loading branch information
jannon committed Mar 21, 2012
1 parent 6073069 commit f717abf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Binary file modified lib/js.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions test/cases/inlinecomment.js
@@ -0,0 +1,2 @@
/** Inline Comment 1 */ this.test = function(){}
/** Inline Comment 2 */ this.test2 = function(){};
1 change: 1 addition & 0 deletions test/runner.js
Expand Up @@ -136,6 +136,7 @@ testFile('test/t/cases/exportstag4.js');
testFile('test/t/cases/exceptiontag.js');
testFile('test/t/cases/globaltag.js');
testFile('test/t/cases/ignoretag.js');
testFile('test/t/cases/inlinecomment.js');
testFile('test/t/cases/lends.js');
testFile('test/t/cases/lends2.js');
testFile('test/t/cases/lendsglobal.js');
Expand Down
10 changes: 10 additions & 0 deletions test/t/cases/inlinecomment.js
@@ -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");
});
})();

0 comments on commit f717abf

Please sign in to comment.