Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix and tests for #55

  • Loading branch information...
commit f717abf6e1f3c8f70e7cb4a6c90887831d059d1f 1 parent 6073069
@jannon jannon authored
View
BIN  lib/js.jar
Binary file not shown
View
2  test/cases/inlinecomment.js
@@ -0,0 +1,2 @@
+/** Inline Comment 1 */ this.test = function(){}
+/** Inline Comment 2 */ this.test2 = function(){};
View
1  test/runner.js
@@ -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');
View
10 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");
+ });
+})();
Please sign in to comment.
Something went wrong with that request. Please try again.