Running the tests doesn't check the result of the worker based pdf processing code. This should be the case.

this._textDivProperties = new WeakMap();
    this._renderingDone = false;
    this._canceled = false;
    this._capability = createPromiseCapability();
    this._renderTimer = null;
    this._bounds = [];
    
    this._capability.promise
      .finally(() => {
        if (!this._enhanceTextSelection) {
          
          this._textDivProperties = null;
        }
        if (this._layoutTextCtx) {
          
          
          this._layoutTextCtx.canvas.width = 0;
          this._layoutTextCtx.canvas.height = 0;
          this._layoutTextCtx = null;
        }
      })
      .catch(() => {
        
      });
  }
  /**
   * Promise for textLayer rendering task completion.
   * @type {Promise<void>}
   */
  get promise() {