diff --git a/OpenBench/static/live.js b/OpenBench/static/live.js index f31beed..2c0bc29 100644 --- a/OpenBench/static/live.js +++ b/OpenBench/static/live.js @@ -207,6 +207,10 @@ /* ---------- Polling ---------- */ + function running() { + return !!document.querySelector('.page-head .fa-spin'); + } + function interval() { var path = window.location.pathname, base = 10000; @@ -268,7 +272,13 @@ return response.text(); }) .then(function (html) { + + // A test that has just finished still has a last data point to draw + var wasRunning = running(); + if (!apply(html)) throw new Error('no content'); + + if (window.refreshLLRHistory && (wasRunning || running())) window.refreshLLRHistory(); failures = 0; last = Date.now(); setState('live');