this.updateStatus = function()

in 2019/harness/compactTestList.js [65:104]


  this.updateStatus = function(status) {
    var text = this.desc.status;
    var failureStatus = '';
    status = status ? status : document.getElementById(this.statusId);

    if (this.style === 'expanded-test-status') {
      failureStatus = this.desc.mandatory ? 'test-status-fail' :
          'test-status-optional-fail';
      if (this.desc.running) {
        status.innerHTML = text || '...';
        status.className = 'test-status-running';
      } else if (this.desc.failures) {
        status.innerHTML = text || 'Fail';
        status.className = failureStatus;
      } else if (this.desc.timeouts) {
        status.innerHTML = text || 'Fail';
        status.className = failureStatus;
      } else if (this.desc.passes) {
        status.innerHTML = text || 'Pass';
        status.className = 'test-status-pass';
      } else {
        status.innerHTML = ' ';
        status.className = 'test-status-normal';
      }
   } else {
      failureStatus = this.desc.mandatory ? 'test-status-fail' :
          'test-status-optional-fail';
      if (this.desc.running) {
        status.className = 'test-status-running';
      } else if (this.desc.failures) {
        status.className = failureStatus;
      } else if (this.desc.timeouts) {
        status.className = failureStatus;
      } else if (this.desc.passes) {
        status.className = 'test-status-pass';
      } else {
        status.className = 'test-status-none';
      }
    }
  };