testByteArrayToText_Uint8Array() {
    if (!globalThis.Uint8Array) {
      // Uint8Array not supported.
      return;
    }

    let arr = new Uint8Array(
        [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100]);
    assertEquals('ASCII', 'Hello, world', crypt.byteArrayToText(arr));

    arr = new Uint8Array([83, 99, 104, 195, 182, 110]);
    assertEquals('Latin', 'Sch\u00f6n', crypt.byteArrayToText(arr));

    arr = new Uint8Array(UTF8_RANGES_BYTE_ARRAY);
    assertEquals(
        'limits of the first 3 UTF-8 character ranges', UTF8_RANGES_STRING,
        crypt.byteArrayToText(arr));
  }
Same as testByteArrayToText but with Uint8Array instead of
Array<number>.