diff --git a/test/modules/world.js b/test/modules/world.js index ce63f02a..0c5aebf7 100644 --- a/test/modules/world.js +++ b/test/modules/world.js @@ -213,6 +213,26 @@ checkBounds(new OpenSeadragon.Rect(0, 0, 1, 4), 'one vertical column'); + viewer.world.arrange({ + layout: 'horizontal', + rows: false, + columns: 3, + tileSize: 1, + tileMargin: 0.5 + }); + + checkBounds(new OpenSeadragon.Rect(0, 0, 4, 1), 'three horizontal columns (one horizontal row)'); + + viewer.world.arrange({ + layout: 'vertical', + rows: false, + columns: 3, + tileSize: 1, + tileMargin: 0.5 + }); + + checkBounds(new OpenSeadragon.Rect(0, 0, 1, 4), 'three vertical rows (one vertical column)'); + start(); });