From 24eea0349defa34c90590153860b2cf0906369aa Mon Sep 17 00:00:00 2001 From: Yui T Date: Wed, 15 Jul 2015 11:49:00 -0700 Subject: [PATCH] Add tests --- ...mitTripleSlashCommentsEvenInAmbientDeclaration.ts | 8 ++++++++ tests/cases/compiler/doNotEmitTripleSlashComments.ts | 7 +++++++ ...tTripleSlashCommentsButPreserveDetachComments1.ts | 11 +++++++++++ ...tTripleSlashCommentsButPreserveDetachComments2.ts | 12 ++++++++++++ ...tTripleSlashCommentsButPreserveDetachComments3.ts | 10 ++++++++++ ...mitTripleSlashCommentsEvenInAmbientDeclaration.ts | 8 ++++++++ 6 files changed, 56 insertions(+) create mode 100644 doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts create mode 100644 tests/cases/compiler/doNotEmitTripleSlashComments.ts create mode 100644 tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments1.ts create mode 100644 tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments2.ts create mode 100644 tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments3.ts create mode 100644 tests/cases/compiler/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts diff --git a/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts b/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts new file mode 100644 index 00000000000..3a89b600c66 --- /dev/null +++ b/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts @@ -0,0 +1,8 @@ +// @comments: false + +// @Filename: file0.ts + +// @Fileame: file1.ts + +/// +declare var OData: any; \ No newline at end of file diff --git a/tests/cases/compiler/doNotEmitTripleSlashComments.ts b/tests/cases/compiler/doNotEmitTripleSlashComments.ts new file mode 100644 index 00000000000..11e7dee5796 --- /dev/null +++ b/tests/cases/compiler/doNotEmitTripleSlashComments.ts @@ -0,0 +1,7 @@ +// @comments: false + +// @Filename: file0.ts + +// @Filename: file1.ts +/// +var OData: any; \ No newline at end of file diff --git a/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments1.ts b/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments1.ts new file mode 100644 index 00000000000..f511e75085b --- /dev/null +++ b/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments1.ts @@ -0,0 +1,11 @@ +// @comments: false + +// @Filename: file0.ts + +// @Filename: file1.ts + +// +// Copy Right comment +// + +/// diff --git a/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments2.ts b/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments2.ts new file mode 100644 index 00000000000..424c7374717 --- /dev/null +++ b/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments2.ts @@ -0,0 +1,12 @@ +// @comments: false + +// @Filename: file0.ts + +// @Filename: file1.ts + +// +// Copy Right comment +// + +/// +var x = 10; \ No newline at end of file diff --git a/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments3.ts b/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments3.ts new file mode 100644 index 00000000000..95f1bb4cbbb --- /dev/null +++ b/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments3.ts @@ -0,0 +1,10 @@ +// @comments: false + +// @Filename: file0.ts + +// @Filename: file1.ts + +// +// Copy Right comment +// +/// diff --git a/tests/cases/compiler/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts b/tests/cases/compiler/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts new file mode 100644 index 00000000000..99f6a292342 --- /dev/null +++ b/tests/cases/compiler/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts @@ -0,0 +1,8 @@ +// @comments: false + +// @Filename: file0.ts + +// @Filename: file1.ts + +/// +declare var OData: any; \ No newline at end of file