Lines Matching refs:lines
141 // Remove all ending lines that match (this optimizes the output for
142 // readability by reducing the number of total changed lines).
163 // We have to get the result again. The lines were all removed before.
166 // Only remove lines in case it makes sense to collapse those.
179 // There were at least five identical lines at the end. Mark a couple of
196 let lines = actualLines;
200 lines = expectedLines;
207 // If more than two former lines are identical, print them. Collapse them
208 // in case more than five lines were identical.
213 res += `\n ${lines[i - 3]}`;
220 res += `\n ${lines[i - 2]}`;
223 res += `\n ${lines[i - 1]}`;
226 // No identical lines before.
229 if (lines === actualLines) {
230 res += `\n${plusMinus} ${lines[i]}`;
232 other += `\n${plusMinus} ${lines[i]}`;
235 // Only extra actual lines exist
240 // If the lines diverge, specifically check for lines that only diverge by
263 // If more than two former lines are identical, print them. Collapse
264 // them in case more than five lines were identical.
282 // No identical lines before.
285 // line so consecutive diverging lines show up as +++--- and not +-+-+-.
315 const lines = StringPrototypeSplit(string, '\n', 11);
316 if (lines.length > 10) {
317 lines.length = 10;
318 return `${ArrayPrototypeJoin(lines, '\n')}\n...`;
378 // Only remove lines in case it makes sense to collapse those.