From a8b9e2b88f874fdba3a2b0f9bd683b0a6097aafb Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Fri, 19 Dec 2014 16:53:30 -0800 Subject: [PATCH] Fix for one viewport unit test --- test/viewport.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/viewport.js b/test/viewport.js index 35402d87..bd30b2ba 100644 --- a/test/viewport.js +++ b/test/viewport.js @@ -243,8 +243,10 @@ viewport.zoomTo(ZOOM_FACTOR, null, true); viewport.update(); // need to call this even with immediately=true - // If the default zoom level is set to 0, then we expect the home zoom to be 1. - if(level === 0){ + // Special cases for oddball levels + if (level === -1) { + expected = 0.25; + } else if(level === 0){ expected = 1; }