Skip to content

Commit

Permalink
respect tileOffset properties
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangebert committed Apr 3, 2024
1 parent 269108d commit 3cd44bd
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions packages/flame_tiled/test/tiled_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,9 @@ void main() {
final pngData = await renderMapToPng(component);

expect(
pngData, matchesGoldenFile('goldens/test_tile_offset_hexagonal.png'));
pngData,
matchesGoldenFile('goldens/test_tile_offset_hexagonal.png'),
);
});

test('tile offset isometric', () async {
Expand All @@ -656,7 +658,9 @@ void main() {
final pngData = await renderMapToPng(component);

expect(
pngData, matchesGoldenFile('goldens/test_tile_offset_isometric.png'));
pngData,
matchesGoldenFile('goldens/test_tile_offset_isometric.png'),
);
});

test('tile offset orthogonal', () async {
Expand All @@ -670,8 +674,10 @@ void main() {

final pngData = await renderMapToPng(component);

expect(pngData,
matchesGoldenFile('goldens/test_tile_offset_orthogonal.png'));
expect(
pngData,
matchesGoldenFile('goldens/test_tile_offset_orthogonal.png'),
);
});

test('tile offset staggered', () async {
Expand All @@ -686,7 +692,9 @@ void main() {
final pngData = await renderMapToPng(component);

expect(
pngData, matchesGoldenFile('goldens/test_tile_offset_staggered.png'));
pngData,
matchesGoldenFile('goldens/test_tile_offset_staggered.png'),
);
});
});

Expand Down

0 comments on commit 3cd44bd

Please sign in to comment.