From 4fa91ef3aec4238e52b83ec791f49a3e71d1f188 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Fri, 1 May 2020 01:11:21 +0200 Subject: [PATCH] Fix refresh bug in audio test --- test/audioTest.html | 2 +- test/audioTest.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/audioTest.html b/test/audioTest.html index 74a6652..20ba912 100644 --- a/test/audioTest.html +++ b/test/audioTest.html @@ -31,7 +31,7 @@
Hashes:

- Sums:
+ Sums:
diff --git a/test/audioTest.js b/test/audioTest.js index dba1037..3ead0e3 100644 --- a/test/audioTest.js +++ b/test/audioTest.js @@ -13,6 +13,7 @@ const container = document.getElementById("test"); const hashContainer = container.querySelector(".hashes"); + const sumsContainer = container.querySelector(".sums"); let hashSets = Object.create(null); function createSet(set){ @@ -144,7 +145,7 @@ sumRow.appendChild(nameCell); const sumCell = document.createElement("td"); sumRow.appendChild(sumCell); - container.querySelector(".sum").appendChild(sumRow); + sumsContainer.appendChild(sumRow); // Start audio processing context.startRendering(); @@ -185,6 +186,7 @@ function createAllHashData(){ hashContainer.innerHTML = ""; + sumsContainer.innerHTML = ""; hashSets = Object.create(null); createEmptyData(); createHashData(1e4);