mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-01 21:06:12 +03:00
add refpoint to zoom tests.
This commit is contained in:
parent
3d3f4dbee5
commit
cc382eb263
1 changed files with 18 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue