From: Chris Duncan Date: Mon, 7 Jul 2025 15:28:51 +0000 (-0700) Subject: Scroll test results as they are printed to test page. X-Git-Tag: v0.10.5~95 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=1a0386b12aa2128d12aa433ca17c22241c85b1d0;p=libnemo.git Scroll test results as they are printed to test page. --- 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) } })()