From 720fae1699aa6eec2e93e3c06db560e121c61e32 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 15 Aug 2014 13:53:39 -0700 Subject: [PATCH] Test cases for trailing comments for modules --- tests/baselines/reference/commentsModules.js | 16 ++++++++-------- tests/cases/compiler/commentsModules.ts | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/baselines/reference/commentsModules.js b/tests/baselines/reference/commentsModules.js index c5fb8fbf115..1dbc6cc35c5 100644 --- a/tests/baselines/reference/commentsModules.js +++ b/tests/baselines/reference/commentsModules.js @@ -35,7 +35,7 @@ module m1 { */ function foo4Export() { } -} +} // trailing comment module m1.fooExport(); var myvar = new m1.m2.c(); /** module comment of m2.m3*/ @@ -43,14 +43,14 @@ module m2.m3 { /** Exported class comment*/ export class c { } -} +} /* trailing dotted module comment*/ new m2.m3.c(); /** module comment of m3.m4.m5*/ module m3.m4.m5 { /** Exported class comment*/ export class c { } -} +} // trailing dotted module 2 new m3.m4.m5.c(); /** module comment of m4.m5.m6*/ module m4.m5.m6 { @@ -58,7 +58,7 @@ module m4.m5.m6 { /** Exported class comment*/ export class c { } - } + } /* trailing inner module */ /* multiple comments*/ } new m4.m5.m6.m7.c(); /** module comment of m5.m6.m7*/ @@ -141,7 +141,7 @@ var m1; */ function foo4Export() { } -})(m1 || (m1 = {})); +})(m1 || (m1 = {})); // trailing comment module m1.fooExport(); var myvar = new m1.m2.c(); /** module comment of m2.m3*/ @@ -157,7 +157,7 @@ var m2; m3.c = c; })(m2.m3 || (m2.m3 = {})); var m3 = m2.m3; -})(m2 || (m2 = {})); +})(m2 || (m2 = {})); /* trailing dotted module comment*/ new m2.m3.c(); /** module comment of m3.m4.m5*/ var m3; @@ -175,7 +175,7 @@ var m3; var m5 = m4.m5; })(m3.m4 || (m3.m4 = {})); var m4 = m3.m4; -})(m3 || (m3 = {})); +})(m3 || (m3 = {})); // trailing dotted module 2 new m3.m4.m5.c(); /** module comment of m4.m5.m6*/ var m4; @@ -191,7 +191,7 @@ var m4; })(); m7.c = c; })(m6.m7 || (m6.m7 = {})); - var m7 = m6.m7; + var m7 = m6.m7; /* trailing inner module */ /* multiple comments*/ })(m5.m6 || (m5.m6 = {})); var m6 = m5.m6; })(m4.m5 || (m4.m5 = {})); diff --git a/tests/cases/compiler/commentsModules.ts b/tests/cases/compiler/commentsModules.ts index 4e4b6a243ff..29ac0c22373 100644 --- a/tests/cases/compiler/commentsModules.ts +++ b/tests/cases/compiler/commentsModules.ts @@ -37,7 +37,7 @@ module m1 { */ function foo4Export() { } -} +} // trailing comment module m1.fooExport(); var myvar = new m1.m2.c(); /** module comment of m2.m3*/ @@ -45,14 +45,14 @@ module m2.m3 { /** Exported class comment*/ export class c { } -} +} /* trailing dotted module comment*/ new m2.m3.c(); /** module comment of m3.m4.m5*/ module m3.m4.m5 { /** Exported class comment*/ export class c { } -} +} // trailing dotted module 2 new m3.m4.m5.c(); /** module comment of m4.m5.m6*/ module m4.m5.m6 { @@ -60,7 +60,7 @@ module m4.m5.m6 { /** Exported class comment*/ export class c { } - } + } /* trailing inner module */ /* multiple comments*/ } new m4.m5.m6.m7.c(); /** module comment of m5.m6.m7*/