mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Added unit test for property access colorization.
This commit is contained in:
1 parent
1c73189fa1
commit
4493aa60eb
1 file changed
+8
-1
@@ -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"),
|
||||
|
||||
Reference in new issue
Block a user