mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-13 01:33:16 +00:00
Added a failing test for #968
This commit is contained in:
parent
9d9bfc1f08
commit
a8f53c4b03
1 changed files with 7 additions and 0 deletions
|
|
@ -151,6 +151,13 @@ class TestFillOperation(ImageOperationTestCase):
|
|||
('resize', (800, 600), {}),
|
||||
]),
|
||||
|
||||
# Basic usage with an oddly-sized original image
|
||||
# This checks for a rounding precision issue (#968)
|
||||
('fill-200x200', Image(width=539, height=720), [
|
||||
('crop', (0, 90, 539, 629), {}),
|
||||
('resize', (200, 200), {}),
|
||||
]),
|
||||
|
||||
# Closeness shouldn't have any effect when used without a focal point
|
||||
('fill-800x600-c100', Image(width=1000, height=1000), [
|
||||
('crop', (0, 125, 1000, 875), {}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue