diff --git a/test/viewport.js b/test/viewport.js index 1fb7349a..3e8f1590 100644 --- a/test/viewport.js +++ b/test/viewport.js @@ -286,9 +286,10 @@ viewport.update(); propEqual( viewport.getBounds(), - new OpenSeadragon.Point(0,0), + new OpenSeadragon.Rect(-1.5,0,4,4), "Viewport fit a tall image horizontally." ); + start(); }; viewer.addHandler('open', openHandler); viewer.open(TALL_PATH); @@ -302,9 +303,10 @@ viewport.update(); propEqual( viewport.getBounds(), - new OpenSeadragon.Point(0,0), + new OpenSeadragon.Rect(0,0,0.25,0.25), "Viewport fit a wide image vertically." ); + start(); }; viewer.addHandler('open', openHandler); viewer.open(WIDE_PATH);