Added more tests, fixed length count bug and IO clearance bug

This commit is contained in:
n1474335 2023-03-03 17:33:42 +00:00
parent 8c0e23e196
commit 819e4a574c
6 changed files with 277 additions and 22 deletions

View file

@ -1222,12 +1222,6 @@ class InputWaiter {
this.setupInputWorker();
this.manager.worker.setupChefWorker();
this.addInput(true);
// Fire the statechange event as the input has been modified,
// leaving enough time for workers to be initialised
setTimeout(function() {
window.dispatchEvent(this.manager.statechange);
}.bind(this), 100);
}
/**

View file

@ -231,9 +231,13 @@ class OutputWaiter {
*/
async setOutput(data, force=false) {
// Don't do anything if the output hasn't changed
if (!force && data === this.currentOutputCache) return;
this.currentOutputCache = data;
if (!force && data === this.currentOutputCache) {
this.manager.controls.hideStaleIndicator();
this.toggleLoader(false);
return;
}
this.currentOutputCache = data;
this.toggleLoader(true);
// If data is an ArrayBuffer, convert to a string in the correct character encoding