From 062bb1d7c66efc516066ffe27aec7628b39c2074 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Mon, 13 Oct 2025 12:10:12 -0700 Subject: [PATCH] Feat: Show spinner while running tests --- index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index fb8c7cd..a8de638 100644 --- a/index.html +++ b/index.html @@ -51,6 +51,11 @@ const list = document.getElementById(`list-${sModel}`); for (const test of tests) { + const li = document.createElement('li'); + li.className = 'flex items-center gap-3 text-sm'; + list.appendChild(li); + li.innerHTML = `${test}...`; + let itemHTML; try { const tMod = await import(`./tests/${test}/test.js`); @@ -62,7 +67,7 @@ itemHTML = `❌ ${test}`; } const time = genTimes[model]?.[test]?.toFixed(3) ?? 'N/A'; - list.innerHTML += `
  • ${itemHTML}${time}s
  • `; + li.innerHTML = `${itemHTML}${time}s`; } } };