Skip to content

Commit a2c5999

Browse files
committed
Added test for gasp table writing
1 parent c39aa15 commit a2c5999

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/tables/gasp.spec.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ describe('tables/gasp.mjs', function () {
2929
assert.equal(font.tables.gasp.gaspRanges[1].rangeGaspBehavior, 0x0001 + 0x0002 + 0x0004 + 0x0008); // all flags set = 15
3030
});
3131

32+
it('can write tables that are read as identical to the original', function() {
33+
const font2 = parse(font.toArrayBuffer());
34+
assert.strictEqual(JSON.stringify(font.tables.gasp), JSON.stringify(font2.tables.gasp));
35+
});
36+
3237
});

0 commit comments

Comments
 (0)