From 713e57b451080586c70c85de81d8a4c0e8ecb7e8 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 2 May 2021 20:31:25 -0400 Subject: [PATCH] remote_runner: Don't break long lines Breaking lines makes it harder to read and search the test output. --- src/tests/frontend/runner.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/tests/frontend/runner.js b/src/tests/frontend/runner.js index 8f6665cba..c405b79ee 100644 --- a/src/tests/frontend/runner.js +++ b/src/tests/frontend/runner.js @@ -102,12 +102,8 @@ $(() => { const $console = $('#console'); const append = (text) => { - const lines = text.split('\n') - // Break long lines into multiple lines: - .map((line) => line.match(/.{1,100}/g)) - .reduce((soFar, next) => soFar.concat(next), []) - // Indent each line: - .map((line) => ' '.repeat(level * 2) + line); + // Indent each line. + const lines = text.split('\n').map((line) => ' '.repeat(level * 2) + line); $console.append(document.createTextNode(`${lines.join('\\n')}\\n`)); };