• passes: 3
  • failures: 0
  • duration: 0.01s
  • ArrayBufferReader

    • ArrayBuffer

      • should have the correct length1ms ‣

        async() => {
              const length = await reader.getLength();
              assert.equal(length, ab.byteLength);
            }
      • should work at 0 offset1ms ‣

        async() => {
              const data = await reader.read(0, 3);
              const view = new Uint8Array(data);
              assert.deepEqual(view, new Uint8Array([11, 22, 33]));
            }
      • should work at non 0 offset0ms ‣

        async() => {
              const data = await reader.read(97, 3);
              const view = new Uint8Array(data);
              assert.deepEqual(view, new Uint8Array([44, 55, 66]));
            }