From 2902aa2ba330c56e18ef418695b18c814dc9019b Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 18 Mar 2015 14:21:17 -0700 Subject: [PATCH] Added tests. --- ...dProperty.ts => goToDefinitionShorthandProperty01.ts} | 0 .../cases/fourslash/goToDefinitionShorthandProperty02.ts | 9 +++++++++ .../cases/fourslash/goToDefinitionShorthandProperty03.ts | 9 +++++++++ 3 files changed, 18 insertions(+) rename tests/cases/fourslash/{goToDefinitionShorthandProperty.ts => goToDefinitionShorthandProperty01.ts} (100%) create mode 100644 tests/cases/fourslash/goToDefinitionShorthandProperty02.ts create mode 100644 tests/cases/fourslash/goToDefinitionShorthandProperty03.ts diff --git a/tests/cases/fourslash/goToDefinitionShorthandProperty.ts b/tests/cases/fourslash/goToDefinitionShorthandProperty01.ts similarity index 100% rename from tests/cases/fourslash/goToDefinitionShorthandProperty.ts rename to tests/cases/fourslash/goToDefinitionShorthandProperty01.ts diff --git a/tests/cases/fourslash/goToDefinitionShorthandProperty02.ts b/tests/cases/fourslash/goToDefinitionShorthandProperty02.ts new file mode 100644 index 00000000000..033cb1d6bab --- /dev/null +++ b/tests/cases/fourslash/goToDefinitionShorthandProperty02.ts @@ -0,0 +1,9 @@ +/// + +////let x = { +//// f/*1*/oo +////} + +goTo.marker("1"); +goTo.definition(); +verify.not.definitionLocationExists(); \ No newline at end of file diff --git a/tests/cases/fourslash/goToDefinitionShorthandProperty03.ts b/tests/cases/fourslash/goToDefinitionShorthandProperty03.ts new file mode 100644 index 00000000000..5e61c19c7cc --- /dev/null +++ b/tests/cases/fourslash/goToDefinitionShorthandProperty03.ts @@ -0,0 +1,9 @@ +/// + +////let /*def*/x = { +//// /*prop*/x +////} + +goTo.marker("prop"); +goTo.definition(); +verify.caretAtMarker("def"); \ No newline at end of file