Skip to content

Commit

Permalink
Update src/webgpu/api/operation/buffers/map_ArrayBuffer.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
austinEng authored Mar 3, 2022
1 parent 6b50a4c commit 5a05b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webgpu/api/operation/buffers/map_ArrayBuffer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ g.test('postMessage')
for (let i = 0; i < ab2Data.length; ++i) {
ab2Data[i] = abs2NewData[i];
}
checkElementsEqual(ab1Data, initialData);
checkElementsEqual(ab2Data, abs2NewData);
t.expectOK(checkElementsEqual(ab1Data, initialData));
t.expectOK(checkElementsEqual(ab2Data, abs2NewData));

buf.unmap();
t.expect(ab1.byteLength === 0, 'after unmap, ab1 should be detached');
Expand Down

0 comments on commit 5a05b54

Please sign in to comment.