From 8e1d228a44ebf148c0a4813d18ada8821ed34ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gorka=20Hern=C3=A1ndez=20Estomba?= Date: Fri, 25 Oct 2019 20:28:50 +0200 Subject: [PATCH] Update inconsistent use of the word multiline/multi-line in test cases (#34733) The word multi-line and multiline are used interchangeably within the file. Multiline seems to be the most used spelling of the word across the TypeScript repository codebase so a few strings have been updated to keep consistency within a single file. Additionally, corrected a minor capitalization mistake. --- .../unittests/services/colorization.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/testRunner/unittests/services/colorization.ts b/src/testRunner/unittests/services/colorization.ts index 1970fea7b03..c8052cfc17b 100644 --- a/src/testRunner/unittests/services/colorization.ts +++ b/src/testRunner/unittests/services/colorization.ts @@ -57,7 +57,7 @@ describe("unittests:: services:: Colorization", () => { } describe("test getClassifications", () => { - it("Returns correct token classes", () => { + it("returns correct token classes", () => { testLexicalClassification("var x: string = \"foo\" ?? \"bar\"; //Hello", ts.EndOfLineState.None, keyword("var"), @@ -96,14 +96,14 @@ describe("unittests:: services:: Colorization", () => { operator(",")); }); - it("correctly classifies a multi-line string with one backslash", () => { + it("correctly classifies a multiline string with one backslash", () => { testLexicalClassification("'line1\\", ts.EndOfLineState.None, stringLiteral("'line1\\"), finalEndOfLineState(ts.EndOfLineState.InSingleQuoteStringLiteral)); }); - it("correctly classifies a multi-line string with three backslashes", () => { + it("correctly classifies a multiline string with three backslashes", () => { testLexicalClassification("'line1\\\\\\", ts.EndOfLineState.None, stringLiteral("'line1\\\\\\"), @@ -131,42 +131,42 @@ describe("unittests:: services:: Colorization", () => { finalEndOfLineState(ts.EndOfLineState.None)); }); - it("correctly classifies the continuing line of a multi-line string ending in one backslash", () => { + it("correctly classifies the continuing line of a multiline string ending in one backslash", () => { testLexicalClassification("\\", ts.EndOfLineState.InDoubleQuoteStringLiteral, stringLiteral("\\"), finalEndOfLineState(ts.EndOfLineState.InDoubleQuoteStringLiteral)); }); - it("correctly classifies the continuing line of a multi-line string ending in three backslashes", () => { + it("correctly classifies the continuing line of a multiline string ending in three backslashes", () => { testLexicalClassification("\\", ts.EndOfLineState.InDoubleQuoteStringLiteral, stringLiteral("\\"), finalEndOfLineState(ts.EndOfLineState.InDoubleQuoteStringLiteral)); }); - it("correctly classifies the last line of an unterminated multi-line string ending in no backslashes", () => { + it("correctly classifies the last line of an unterminated multiline string ending in no backslashes", () => { testLexicalClassification(" ", ts.EndOfLineState.InDoubleQuoteStringLiteral, stringLiteral(" "), finalEndOfLineState(ts.EndOfLineState.None)); }); - it("correctly classifies the last line of an unterminated multi-line string ending in two backslashes", () => { + it("correctly classifies the last line of an unterminated multiline string ending in two backslashes", () => { testLexicalClassification("\\\\", ts.EndOfLineState.InDoubleQuoteStringLiteral, stringLiteral("\\\\"), finalEndOfLineState(ts.EndOfLineState.None)); }); - it("correctly classifies the last line of an unterminated multi-line string ending in four backslashes", () => { + it("correctly classifies the last line of an unterminated multiline string ending in four backslashes", () => { testLexicalClassification("\\\\\\\\", ts.EndOfLineState.InDoubleQuoteStringLiteral, stringLiteral("\\\\\\\\"), finalEndOfLineState(ts.EndOfLineState.None)); }); - it("correctly classifies the last line of a multi-line string", () => { + it("correctly classifies the last line of a multiline string", () => { testLexicalClassification("'", ts.EndOfLineState.InSingleQuoteStringLiteral, stringLiteral("'"),