diff --git a/test/ListPredictionTest.cs b/test/ListPredictionTest.cs index 4931867a5..1b28339f7 100644 --- a/test/ListPredictionTest.cs +++ b/test/ListPredictionTest.cs @@ -1355,8 +1355,8 @@ public void List_PluginSource_Acceptance() TokenClassification.Command, "ec", NextLine, TokenClassification.ListPrediction, "<-/3>", - TokenClassification.None, new string(' ', listWidth - 42), // 42 is the length of '<-/3>' plus ''. - dimmedColors, "", + TokenClassification.None, new string(' ', listWidth - 42), // 42 is the length of '<-/3>' plus ''. + dimmedColors, "", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME TEXT BEFORE ", @@ -1377,9 +1377,9 @@ public void List_PluginSource_Acceptance() NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME NEW TEXT", - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, @@ -1395,10 +1395,10 @@ public void List_PluginSource_Acceptance() TokenClassification.None, " TEXT BEFORE ec", NextLine, TokenClassification.ListPrediction, "<1/3>", - TokenClassification.None, new string(' ', listWidth - 44), // 44 is the length of '<1/3>' plus ''. + TokenClassification.None, new string(' ', listWidth - 44), // 44 is the length of '<1/3>' plus ''. dimmedColors, '<', TokenClassification.ListPrediction, "TestPredictor(1/2) ", - dimmedColors, "LongNamePredic…(1)>", + dimmedColors, "LongNamePredic…(1)>", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.ListPredictionSelected, " SOME TEXT BEFORE ", @@ -1419,9 +1419,9 @@ public void List_PluginSource_Acceptance() NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME NEW TEXT", - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, @@ -1434,10 +1434,10 @@ public void List_PluginSource_Acceptance() TokenClassification.Selection, "SOME TEXT BEFORE ec", NextLine, TokenClassification.ListPrediction, "<1/3>", - TokenClassification.None, new string(' ', listWidth - 44), // 44 is the length of '<1/3>' plus ''. + TokenClassification.None, new string(' ', listWidth - 44), // 44 is the length of '<1/3>' plus ''. dimmedColors, '<', TokenClassification.ListPrediction, "TestPredictor(1/2) ", - dimmedColors, "LongNamePredic…(1)>", + dimmedColors, "LongNamePredic…(1)>", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.ListPredictionSelected, " SOME TEXT BEFORE ", @@ -1458,9 +1458,9 @@ public void List_PluginSource_Acceptance() NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME NEW TEXT", - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, @@ -1473,8 +1473,8 @@ public void List_PluginSource_Acceptance() TokenClassification.Command, "j", NextLine, TokenClassification.ListPrediction, "<-/3>", - TokenClassification.None, new string(' ', listWidth - 42), // 42 is the length of '<-/3>' plus ''. - dimmedColors, "", + TokenClassification.None, new string(' ', listWidth - 42), // 42 is the length of '<-/3>' plus ''. + dimmedColors, "", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME TEXT BEFORE ", @@ -1495,9 +1495,9 @@ public void List_PluginSource_Acceptance() NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME NEW TEXT", - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, @@ -1518,9 +1518,9 @@ public void List_PluginSource_Acceptance() TokenClassification.None, " NEW TEXT", NextLine, TokenClassification.ListPrediction, "<3/3>", - TokenClassification.None, new string(' ', listWidth - 44), // 44 is the length of '<1/3>' plus ''. + TokenClassification.None, new string(' ', listWidth - 44), // 44 is the length of '<1/3>' plus ''. dimmedColors, "', NextLine, TokenClassification.ListPrediction, '>', @@ -1542,9 +1542,9 @@ public void List_PluginSource_Acceptance() NextLine, TokenClassification.ListPrediction, '>', TokenClassification.ListPredictionSelected, " SOME NEW TEXT", - TokenClassification.ListPredictionSelected, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.ListPredictionSelected, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.ListPredictionSelected, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.ListPredictionSelected, ']', // List view is done, no more list item following. NextLine, @@ -1558,8 +1558,8 @@ public void List_PluginSource_Acceptance() TokenClassification.None, " NEW TEX", NextLine, TokenClassification.ListPrediction, "<-/3>", - TokenClassification.None, new string(' ', listWidth - 42), // 42 is the length of '<-/3>' plus ''. - dimmedColors, "", + TokenClassification.None, new string(' ', listWidth - 42), // 42 is the length of '<-/3>' plus ''. + dimmedColors, "", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME TEXT BEFORE ", @@ -1582,9 +1582,9 @@ public void List_PluginSource_Acceptance() TokenClassification.None, ' ', emphasisColors, "SOME NEW TEX", TokenClassification.None, 'T', - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, @@ -1604,10 +1604,10 @@ public void List_PluginSource_Acceptance() TokenClassification.None, " NEW TEX SOME TEXT AFTER", NextLine, TokenClassification.ListPrediction, "<2/3>", - TokenClassification.None, new string(' ', listWidth - 44), // 44 is the length of '<2/3>' plus ''. + TokenClassification.None, new string(' ', listWidth - 44), // 44 is the length of '<2/3>' plus ''. dimmedColors, '<', TokenClassification.ListPrediction, "TestPredictor(2/2) ", - dimmedColors, "LongNamePredic…(1)>", + dimmedColors, "LongNamePredic…(1)>", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME TEXT BEFORE ", @@ -1630,9 +1630,9 @@ public void List_PluginSource_Acceptance() TokenClassification.None, ' ', emphasisColors, "SOME NEW TEX", TokenClassification.None, 'T', - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, @@ -1676,8 +1676,8 @@ public void List_HistoryAndPluginSource_Acceptance() TokenClassification.Command, "ec", NextLine, TokenClassification.ListPrediction, "<-/5>", - TokenClassification.None, new string(' ', listWidth - 36), // 36 is the length of '<-/5>' plus ''. - dimmedColors, "", + TokenClassification.None, new string(' ', listWidth - 36), // 36 is the length of '<-/5>' plus ''. + dimmedColors, "", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, ' ', @@ -1716,9 +1716,9 @@ public void List_HistoryAndPluginSource_Acceptance() NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME NEW TEXT", - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, @@ -1733,10 +1733,10 @@ public void List_HistoryAndPluginSource_Acceptance() TokenClassification.Selection, "eca -zoo", NextLine, TokenClassification.ListPrediction, "<1/5>", - TokenClassification.None, new string(' ', listWidth - 38), // 38 is the length of '<1/5>' plus ''. + TokenClassification.None, new string(' ', listWidth - 38), // 38 is the length of '<1/5>' plus ''. dimmedColors, '<', TokenClassification.ListPrediction, "History(1/2) ", - dimmedColors, "TestPredictor(2) …>", + dimmedColors, "TestPredictor(2) …>", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.ListPredictionSelected, ' ', @@ -1775,9 +1775,9 @@ public void List_HistoryAndPluginSource_Acceptance() NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME NEW TEXT", - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, @@ -1789,8 +1789,8 @@ public void List_HistoryAndPluginSource_Acceptance() TokenClassification.Command, "j", NextLine, TokenClassification.ListPrediction, "<-/4>", - TokenClassification.None, new string(' ', listWidth - 36), // 36 is the length of '<-/4>' plus ''. - dimmedColors, "", + TokenClassification.None, new string(' ', listWidth - 36), // 36 is the length of '<-/4>' plus ''. + dimmedColors, "", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, ' ', @@ -1820,9 +1820,9 @@ public void List_HistoryAndPluginSource_Acceptance() NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME NEW TEXT", - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, @@ -1842,9 +1842,9 @@ public void List_HistoryAndPluginSource_Acceptance() TokenClassification.None, " NEW TEXT", NextLine, TokenClassification.ListPrediction, "<4/4>", - TokenClassification.None, new string(' ', listWidth - 46), // 46 is the length of '<4/4>' plus '<… TestPredictor(2) LongNamePredic…(1/1)>'. - dimmedColors, "<… TestPredictor(2) ", - TokenClassification.ListPrediction, "LongNamePredic…(1/1)", + TokenClassification.None, new string(' ', listWidth - 46), // 46 is the length of '<4/4>' plus '<… TestPredictor(2) LongNamePredic…(1/1)>'. + dimmedColors, "<… TestPredictor(2) ", + TokenClassification.ListPrediction, "LongNamePredic…(1/1)", dimmedColors, '>', NextLine, TokenClassification.ListPrediction, '>', @@ -1875,9 +1875,9 @@ public void List_HistoryAndPluginSource_Acceptance() NextLine, TokenClassification.ListPrediction, '>', TokenClassification.ListPredictionSelected, " SOME NEW TEXT", - TokenClassification.ListPredictionSelected, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.ListPredictionSelected, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.ListPredictionSelected, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.ListPredictionSelected, ']', // List view is done, no more list item following. NextLine, @@ -1891,8 +1891,8 @@ public void List_HistoryAndPluginSource_Acceptance() TokenClassification.None, " NEW TEX", NextLine, TokenClassification.ListPrediction, "<-/3>", - TokenClassification.None, new string(' ', listWidth - 42), // 42 is the length of '<-/3>' plus ''. - dimmedColors, "", + TokenClassification.None, new string(' ', listWidth - 42), // 42 is the length of '<-/3>' plus ''. + dimmedColors, "", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME TEXT BEFORE ", @@ -1915,9 +1915,9 @@ public void List_HistoryAndPluginSource_Acceptance() TokenClassification.None, ' ', emphasisColors, "SOME NEW TEX", TokenClassification.None, 'T', - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, @@ -1937,10 +1937,10 @@ public void List_HistoryAndPluginSource_Acceptance() TokenClassification.None, " NEW TEX SOME TEXT AFTER", NextLine, TokenClassification.ListPrediction, "<2/3>", - TokenClassification.None, new string(' ', listWidth - 44), // 44 is the length of '<2/3>' plus ''. + TokenClassification.None, new string(' ', listWidth - 44), // 44 is the length of '<2/3>' plus ''. dimmedColors, '<', TokenClassification.ListPrediction, "TestPredictor(2/2) ", - dimmedColors, "LongNamePredic…(1)>", + dimmedColors, "LongNamePredic…(1)>", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME TEXT BEFORE ", @@ -1963,9 +1963,9 @@ public void List_HistoryAndPluginSource_Acceptance() TokenClassification.None, ' ', emphasisColors, "SOME NEW TEX", TokenClassification.None, 'T', - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, @@ -2011,8 +2011,8 @@ public void List_HistoryAndPluginSource_Deduplication() TokenClassification.Command, "de-dup", NextLine, TokenClassification.ListPrediction, "<-/4>", - TokenClassification.None, new string(' ', listWidth - 36), // 36 is the length of '<-/4>' plus ''. - dimmedColors, "", + TokenClassification.None, new string(' ', listWidth - 36), // 36 is the length of '<-/4>' plus ''. + dimmedColors, "", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, ' ', @@ -2042,9 +2042,9 @@ public void List_HistoryAndPluginSource_Deduplication() NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME NEW TEXT", - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, @@ -2075,8 +2075,8 @@ public void List_HistoryAndPluginSource_Deduplication() TokenClassification.Command, "de-dup", NextLine, TokenClassification.ListPrediction, "<-/4>", - TokenClassification.None, new string(' ', listWidth - 36), // 36 is the length of '<-/4>' plus ''. - dimmedColors, "", + TokenClassification.None, new string(' ', listWidth - 36), // 36 is the length of '<-/4>' plus ''. + dimmedColors, "", NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, ' ', @@ -2105,9 +2105,9 @@ public void List_HistoryAndPluginSource_Deduplication() NextLine, TokenClassification.ListPrediction, '>', TokenClassification.None, " SOME NEW TEXT", - TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' + TokenClassification.None, new string(' ', listWidth - 32), // 32 is the length of '> SOME NEW TEXT' plus '[LongNamePredic…]' TokenClassification.None, '[', - TokenClassification.ListPrediction, "LongNamePredic…", + TokenClassification.ListPrediction, "LongNamePredic…", TokenClassification.None, ']', // List view is done, no more list item following. NextLine, diff --git a/test/ListViewTooltipTest.cs b/test/ListViewTooltipTest.cs index 624ec0c99..3d93be47c 100644 --- a/test/ListViewTooltipTest.cs +++ b/test/ListViewTooltipTest.cs @@ -134,7 +134,7 @@ public void List_Item_Tooltip_4_Lines() dimmedColors, " >> Hello", NextLine, dimmedColors, " Binary", NextLine, dimmedColors, " World", NextLine, - dimmedColors, " PowerShell is a task automation an… ", + dimmedColors, " PowerShell is a task automation an… ", TokenClassification.ListPrediction, "( to view all)", NextLine, TokenClassification.ListPrediction, '>', @@ -287,7 +287,7 @@ public void List_Item_Tooltip_2_Lines() TokenClassification.ListPredictionSelected, ']', NextLine, dimmedColors, " >> Hello", NextLine, - dimmedColors, " Binary … ", + dimmedColors, " Binary … ", TokenClassification.ListPrediction, "( to view all)", NextLine, TokenClassification.ListPrediction, '>', @@ -406,7 +406,7 @@ public void List_Item_Tooltip_1_Line() TokenClassification.ListPrediction, "Tooltip", TokenClassification.ListPredictionSelected, ']', NextLine, - dimmedColors, " >> Hello … ", + dimmedColors, " >> Hello … ", TokenClassification.ListPrediction, "( to view all)", NextLine, TokenClassification.ListPrediction, '>', @@ -462,7 +462,7 @@ public void List_Item_Tooltip_1_Line() TokenClassification.ListPrediction, "Tooltip", TokenClassification.ListPredictionSelected, ']', NextLine, - dimmedColors, " >> Hello … ", + dimmedColors, " >> Hello … ", TokenClassification.ListPrediction, "( to view all)", // List view is done, no more list item following. NextLine