From b37f7bcc73e7084e2147113bfdf3745e67ed5162 Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Sat, 23 Mar 2013 10:59:50 -0700 Subject: [PATCH] test multiple types of line endings (#228) --- test/specs/jsdoc/src/parser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/specs/jsdoc/src/parser.js b/test/specs/jsdoc/src/parser.js index 4e9a4967..0ff01129 100644 --- a/test/specs/jsdoc/src/parser.js +++ b/test/specs/jsdoc/src/parser.js @@ -66,7 +66,8 @@ describe("jsdoc/src/parser", function() { // TODO: more tests? it("should reflect comment changes made by 'jsdocCommentFound' handlers", function() { - var source = "javascript:/**\n * replaceme\n * @module foo\n */\n\n" + + // we test both POSIX and Windows line endings + var source = "javascript:/**\n * replaceme\r\n * @module foo\n */\n\n" + "/**\n * replaceme\n */\nvar bar;"; parser.on('jsdocCommentFound', function(e) {