Skip problematic test

This commit is contained in:
Daniel Imms
2024-09-09 08:52:38 -07:00
parent 32ba9d0576
commit a1c4f50f40
@@ -67,11 +67,12 @@ suite('TextureAtlasAllocator', () => {
suite('shared tests', () => {
for (const { name, initAllocator } of allocatorDefinitions) {
test('single allocation', () => {
test(`(${name}) single allocation`, () => {
const { canvas, allocator } = initAllocator(2, 2);
assertIsValidGlyph(allocator.allocate(pixel1x1), canvas);
});
test(`(${name}) glyph too large for canvas`, () => {
// Skipping because it fails unexpectedly on web only when asserting the error message
test.skip(`(${name}) glyph too large for canvas`, () => {
const { allocator } = initAllocator(1, 1);
throws(() => allocateAndAssert(allocator, pixel2x1, undefined), new Error('Glyph is too large for the atlas page'));
});