From 0a3cbe083b7e63518407bf593efcf413dfca5f4a Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 2 Jun 2015 12:58:49 -0700 Subject: [PATCH] Added tests. --- .../completionListAfterRegularExpressionLiteral02.ts | 9 +++++++++ .../completionListAfterRegularExpressionLiteral03.ts | 10 ++++++++++ .../completionListAfterRegularExpressionLiteral04.ts | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 tests/cases/fourslash/completionListAfterRegularExpressionLiteral02.ts create mode 100644 tests/cases/fourslash/completionListAfterRegularExpressionLiteral03.ts create mode 100644 tests/cases/fourslash/completionListAfterRegularExpressionLiteral04.ts diff --git a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral02.ts b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral02.ts new file mode 100644 index 00000000000..677aae80513 --- /dev/null +++ b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral02.ts @@ -0,0 +1,9 @@ +/// + +////let x = /absidey//**/ + +// Should get nothing at the marker since it's +// going to be considered part of the regex flags. + +goTo.marker(); +verify.completionListIsEmpty(); \ No newline at end of file diff --git a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral03.ts b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral03.ts new file mode 100644 index 00000000000..7b767d5e008 --- /dev/null +++ b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral03.ts @@ -0,0 +1,10 @@ +/// + +////let x = /absidey/ +/////**/ + +// Should not be blocked since there is a +// newline separating us from the regex flags. + +goTo.marker(); +verify.not.completionListIsEmpty(); \ No newline at end of file diff --git a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral04.ts b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral04.ts new file mode 100644 index 00000000000..17a714c6f9d --- /dev/null +++ b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral04.ts @@ -0,0 +1,9 @@ +/// + +////let x = /absidey/ /**/ + +// Should not be blocked since there is a +// space separating us from the regex flags. + +goTo.marker(); +verify.not.completionListIsEmpty(); \ No newline at end of file