Ian Gilman
|
a8b9e2b88f
|
Fix for one viewport unit test
|
2014-12-19 16:53:30 -08:00 |
|
nein09
|
00510c6cc2
|
Refactor other looping tests that don't reopen the viewer in a similar manner.
|
2014-12-15 09:41:32 -08:00 |
|
nein09
|
aebfecb4e8
|
Factor out looping and reopening viewer into a helper method, based on Ian's example.
|
2014-12-14 13:15:50 -08:00 |
|
nein09
|
e901248816
|
Explicitly call viewport.update() after zooming and make the test expected values reflect that action.
|
2014-12-14 11:08:54 -08:00 |
|
nein09
|
c4fac82489
|
Clean up errors found by SublimeLinter.
|
2014-12-12 12:51:50 -08:00 |
|
nein09
|
614261876d
|
Incorporate code review feedback - instantiate the viewer for looping ZoomLevel tests, change a few little syntax things
|
2014-11-18 13:05:58 -08:00 |
|
nein09
|
20711c485b
|
getContainerSize test
|
2014-11-13 17:19:36 -08:00 |
|
nein09
|
ca7f79c896
|
Aspect ratio test
|
2014-11-13 09:04:11 -08:00 |
|
nein09
|
f765ab9933
|
min and max zoom level tests
|
2014-11-13 08:55:15 -08:00 |
|
nein09
|
06e970bbc3
|
Last of the tests for pixel/point/rect conversion.
|
2014-11-06 18:30:24 -08:00 |
|
nein09
|
fd380afe7f
|
Add tests for pixel <-> Point and viewport coordinates <-> image coordinates. Still working out the fine points of the target location.
|
2014-10-29 21:10:15 -07:00 |
|
nein09
|
19844c8f42
|
Incorporate code review feedback, add a times method to the Rect class.
|
2014-10-29 09:42:19 -07:00 |
|
nein09
|
e0fbf869c9
|
Replace more magic numbers with constants.
|
2014-10-27 18:06:37 -07:00 |
|
nein09
|
2d70ee32fc
|
Remove randomness from test cases.
|
2014-10-27 17:58:59 -07:00 |
|
nein09
|
c1ae3d08f7
|
More constants, fewer magic numbers.
|
2014-10-23 16:30:34 -07:00 |
|
nein09
|
72a0ecc195
|
Force a zoom factor of 2 and make that a constant; find the viewer position in the window for imageToWindowCoordinates (still not sure where the 20 x 20 pixel padding is coming from
|
2014-10-23 16:13:02 -07:00 |
|
nein09
|
8494b7ee7f
|
Take out multiplication to avoid precision errors because it doesn't; add viewportToImageRectangle test
|
2014-10-21 11:19:41 -07:00 |
|
nein09
|
d9bd3343cc
|
viewerElementToImageCoordinates
|
2014-10-15 17:00:11 -07:00 |
|
nein09
|
c6dd2f213d
|
imageToViewerElementCoordinates and imageToWindowCoordinates
|
2014-10-15 16:54:09 -07:00 |
|
nein09
|
59ee91ea1a
|
add test for windowToImageCoordinates
|
2014-10-15 12:22:52 -07:00 |
|
nein09
|
13045e2ac4
|
Use propEqual to verify Point values, add a stub test for imageToWindowCoordinates
|
2014-10-15 11:45:19 -07:00 |
|
nein09
|
e8d4c00c5f
|
Add viewport.js to test.html so tests get run. Use built-in Point functions. Add a helper function to get a random number.
|
2014-10-09 16:58:45 -07:00 |
|
nein09
|
119ff4226d
|
Add a new test file to hold the viewport tests, and a few new tests to it.
|
2014-10-02 13:20:28 -07:00 |
|