From 4493aa60ebfd2693649524d5a3cb7b1588921c70 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 23 Sep 2014 13:59:47 -0700 Subject: [PATCH] Added unit test for property access colorization. --- tests/cases/unittests/services/colorization.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/cases/unittests/services/colorization.ts b/tests/cases/unittests/services/colorization.ts index f86ee747eb4..b8a80b47ff3 100644 --- a/tests/cases/unittests/services/colorization.ts +++ b/tests/cases/unittests/services/colorization.ts @@ -168,7 +168,14 @@ describe('Colorization', function () { identifier("var")); }); - it("classifies keyword after a dot on previous line", function () { + it("classifies a property access with whitespace around the dot", function () { + test(" x .\tfoo ()", + ts.EndOfLineState.Start, + identifier("x"), + identifier("foo")); + }); + + it("classifies a keyword after a dot on previous line", function () { test("var", ts.EndOfLineState.Start, keyword("var"),