From a71a826b5b2585b8eb2a9c4aeda2e806acca6c86 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 2 Jun 2015 13:40:38 -0700 Subject: [PATCH] Use declared variables to confirm completion. --- .../fourslash/completionListAfterRegularExpressionLiteral01.ts | 3 ++- .../fourslash/completionListAfterRegularExpressionLiteral02.ts | 1 + .../fourslash/completionListAfterRegularExpressionLiteral03.ts | 3 ++- .../fourslash/completionListAfterRegularExpressionLiteral04.ts | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral01.ts b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral01.ts index 558b4d1e791..ac8568d13f5 100644 --- a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral01.ts +++ b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral01.ts @@ -1,7 +1,8 @@ /// +////let v = 100; /////a/./**/ goTo.marker(); -verify.not.memberListContains('alert'); +verify.not.memberListContains('v'); verify.memberListContains('compile'); \ No newline at end of file diff --git a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral02.ts b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral02.ts index 677aae80513..2719d747d58 100644 --- a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral02.ts +++ b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral02.ts @@ -1,5 +1,6 @@ /// +////let v = 100; ////let x = /absidey//**/ // Should get nothing at the marker since it's diff --git a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral03.ts b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral03.ts index 7b767d5e008..7c0e4d51446 100644 --- a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral03.ts +++ b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral03.ts @@ -1,5 +1,6 @@ /// +////let v = 100; ////let x = /absidey/ /////**/ @@ -7,4 +8,4 @@ // newline separating us from the regex flags. goTo.marker(); -verify.not.completionListIsEmpty(); \ No newline at end of file +verify.completionListContains("v"); \ No newline at end of file diff --git a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral04.ts b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral04.ts index 17a714c6f9d..06f31b8175b 100644 --- a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral04.ts +++ b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral04.ts @@ -1,9 +1,10 @@ /// +////let v = 100; ////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 +verify.completionListContains("v"); \ No newline at end of file