Permalink
Browse files

fix and tests for #55

  • Loading branch information...
1 parent 6073069 commit f717abf6e1f3c8f70e7cb4a6c90887831d059d1f @jannon jannon committed Mar 21, 2012
Showing with 13 additions and 0 deletions.
  1. BIN lib/js.jar
  2. +2 −0 test/cases/inlinecomment.js
  3. +1 −0 test/runner.js
  4. +10 −0 test/t/cases/inlinecomment.js
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");
+ });
+})();

0 comments on commit f717abf

Please sign in to comment.