clearTestUIOutputDiv function

void clearTestUIOutputDiv(
  1. String outputDivID
)

Clears the DIV with the ID (outputDivID). Used by initializeTestUIRoot. See testUI.

Implementation

void clearTestUIOutputDiv(String outputDivID) {
  var prevOutputs = querySelectorAll('#$outputDivID');
  for (var e in prevOutputs) {
    e.remove();
  }
}