From 1a0386b12aa2128d12aa433ca17c22241c85b1d0 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 7 Jul 2025 08:28:51 -0700 Subject: [PATCH] Scroll test results as they are printed to test page. --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index b1a75c6..f193df5 100644 --- a/index.html +++ b/index.html @@ -41,6 +41,7 @@ SPDX-License-Identifier: GPL-3.0-or-later a = a.replace('%c', '') output.innerHTML += `
${a}
` consoleGroup(...args) + window?.scrollTo(0, document.body.scrollHeight) } const consoleError = console.error console.error = (...args) => { @@ -48,6 +49,7 @@ SPDX-License-Identifier: GPL-3.0-or-later a = a.replace('%cFAIL ,color:red,', 'FAIL ') output.innerHTML += `
${a}
` consoleError(...args) + window?.scrollTo(0, document.body.scrollHeight) } const consoleLog = console.log console.log = (...args) => { @@ -58,6 +60,7 @@ SPDX-License-Identifier: GPL-3.0-or-later a = a.replace('%cTESTING COMPLETE,color:orange;font-weight:bold', 'TESTING COMPLETE') output.innerHTML += `
${a}
` consoleLog(...args) + window?.scrollTo(0, document.body.scrollHeight) } })() -- 2.47.3