mirror of
https://github.com/mosbth/cimage.git
synced 2025-01-29 09:47:37 +01:00
JSON returns correct values for resulting image. Fix #58.
This commit is contained in:
parent
00dca21be0
commit
cfc4a5f0ed
@ -280,6 +280,7 @@ Revision history
|
||||
|
||||
v0.6.x (latest)
|
||||
|
||||
* JSON returns correct values for resulting image. Fix #58.
|
||||
* Corrected behaviour for skip-original. Fix #60.
|
||||
|
||||
|
||||
|
36
webroot/test/test_issue58.php
Normal file
36
webroot/test/test_issue58.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
// Include config for all testcases
|
||||
include __DIR__ . "/config.php";
|
||||
|
||||
|
||||
|
||||
// The title of the test case
|
||||
$title = "Testing issue 58 - JSON reporting filesize";
|
||||
|
||||
|
||||
|
||||
// Provide a short description of the testcase.
|
||||
$description = "Verify that JSON returns filesize of actual image.";
|
||||
|
||||
|
||||
|
||||
// Use these images in the test
|
||||
$images = array(
|
||||
'kodim08.png',
|
||||
);
|
||||
|
||||
|
||||
|
||||
// For each image, apply these testcases
|
||||
$testcase = array(
|
||||
'&w=300',
|
||||
'&w=300&h=300',
|
||||
'&w=300&h=300&stretch',
|
||||
'&w=300&h=300&crop-to-fit',
|
||||
'&w=300&h=300&fill-to-fit',
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Apply testcases and present results
|
||||
include __DIR__ . "/template.php";
|
Loading…
x
Reference in New Issue
Block a user