Fix for one viewport unit test

This commit is contained in:
Ian Gilman 2014-12-19 16:53:30 -08:00
parent a0092a4298
commit a8b9e2b88f

View File

@ -243,8 +243,10 @@
viewport.zoomTo(ZOOM_FACTOR, null, true); viewport.zoomTo(ZOOM_FACTOR, null, true);
viewport.update(); // need to call this even with immediately=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. // Special cases for oddball levels
if(level === 0){ if (level === -1) {
expected = 0.25;
} else if(level === 0){
expected = 1; expected = 1;
} }