From 36cbc423632704a8568731ef83e139334cadcc1e Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Fri, 28 Aug 2020 16:51:43 +0200 Subject: [PATCH] Better test output html file --- test/js/runner.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/js/runner.js b/test/js/runner.js index c0750e21..67b3fa39 100644 --- a/test/js/runner.js +++ b/test/js/runner.js @@ -42,6 +42,15 @@ function showCase(level) { row.classList.add('hiddenRow'); } } + // Show error if all or error or summary problems selected + if (id.substr(0,2) == 'su') { + if (level == 0 || level == 2) { + row.classList.remove('hiddenRow'); + } + else { + row.classList.add('hiddenRow'); + } + } } } @@ -188,4 +197,4 @@ function show_img(obj) { function hide_img(obj){ obj.parentElement.style.display = "none"; obj.parentElement.getElementsByClassName('imgyuan')[0].innerHTML = ""; -} \ No newline at end of file +}