From 500d8c2348f3eb3fa78cb2b02508e9a66eb0cff1 Mon Sep 17 00:00:00 2001 From: nein09 Date: Fri, 16 Jan 2015 16:30:54 -0800 Subject: [PATCH] Fit horizontally and vertically. --- test/viewport.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);