add refpoint to zoom tests.

This commit is contained in:
nein09 2015-01-16 15:45:04 -08:00
parent 3d3f4dbee5
commit cc382eb263

View File

@ -291,6 +291,15 @@
testZoomLevels[i],
"Zoomed by the correct amount."
);
// now use a ref point
viewport.zoomBy(testZoomLevels[i], testPoints[i], true);
viewport.update();
propEqual(
viewport.getZoom(),
testZoomLevels[i],
"Zoomed by the correct amount."
);
}
start();
@ -313,6 +322,15 @@
testZoomLevels[i],
"Zoomed to the correct level."
);
// now use a ref point
viewport.zoomTo(testZoomLevels[i], testPoints[i], true);
viewport.update(); // need to call this even with immediately=true
propEqual(
viewport.getZoom(),
testZoomLevels[i],
"Zoomed to the correct level."
);
}
start();