Skip to content

Commit

Permalink
improve test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Feb 27, 2024
1 parent de7f77e commit dc923af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/ImageCrop.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
---><cfscript>
component extends="org.lucee.cfml.test.LuceeTestCase" labels="image" {
//variables.base64="iVBORw0KGgoAAAANSUhEUgAAAFwAAAA7CAYAAAD2Hu26AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABihJREFUeNrsXI11ozgQJn5XANsBV0G0FZy2gvgqCK5g2QrCVuCkAuIKyFaAU4G9FeCrwO6Ag3vDHafMSKM/7Kyj9+b5PWMj+DQaffON4KbrusSzSbDb3lLk+Km3n7299LZPrrzdOAI+AHzf25IAmWqH3ja9PcJAfADOAPoBPn3aAPZ3AP4DcKQNXlyBR4ds297+vCZv5wA+eHNtGTps2hDXv1wL6AvD8by3xgD2ANRzb98AuE/DQCr2GY4fkP8L6OM62uDhhOWdvu3gN4mllcT5SodzvTtzAfvYW+HZcUGcN71GwKXBq0Wgzhvk/PmvDvgCYSO1YXELlbw8Id/dXtuiuSYWyEMEJrEnFtCrAVwCK8FYSAyufLjGTHMK+APxm++RNBB5oZhkYFEBzwgAthHT77sL8vohjJa9tYoFB/43+PxKHF9FvEEsfP11BrAFEIUM8fRoHo5pJM8RPe6BWJxfzgB2g4B7guw4/P0Dr8ZaFomLLon+2pk5sYBka9YEbDGzdwtQHanFOVQb4nFn0IEq5NgpupBGZHzZjB41ZrAh+2on566Y0kIHsy96aq+CUM8M9jGgXDCazoFS4lrquVJ7dVptAk8incR7CiwXcDh/ToSS1Ryr9ALhwSGZQkHEythg7zUazVdC1zmdA/CQYFegzVCA/B7Rs7eERiMICjhbbXWhsJEQ4SSFEJITxx+B48b0KNVjx3u8P6d3jyylmixevotCBoyDWhzzmXl2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NAs+v/MOlfAd4SHVsrIV5ZA67bDtcSjIZjnh96+lnf+rbKp2mNhxEThsolnmsJHy6iW6LbO5ZM+Ym1/8AH93/oB941AHZJAPE72gD9otrltgBUIImnYMgu6Emx8P8sJYQXCkXlwm4SkzGYHwf/3wTuWmSSy0FSMOF/CovmeX9ORwmzkJEaNeq9cD1+DJ4/tE6GzCPgtR0s/gOc/Je/3uftx1t4qXv+aEK8NtHnJWAufeyD9pql3b1D6VI3kObmCZvMavfGp3ZVF5WZ8xPs+Mb+a4+YD8LBtTHUFouy9Qnr/y7e/BRgALaP7wcbueaAAAAAASUVORK5CYII=";
variables.imageDir=GetDirectoryFromPath(GetCurrentTemplatePath())&"image/";
variables.imageDir=GetDirectoryFromPath(GetCurrentTemplatePath())&"images/";
public function setUp() localmode="true"{
variables.image=imagenew(variables.imageDir&"image.jpg");
}
Expand Down
3 changes: 1 addition & 2 deletions tests/LDEV0898.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="image" {
public void function test() {
var src=variables.imageDir&"BigBen.jpg";
var trg=variables.tmpDir&"BigBen.jpg";
if(!directoryExists(variables.tmpDir)) directoryCreate(variables.tmpDir);

try {
// create directory
if(!directoryExists(trgDir)) directoryCreate(trgDir);
if(!directoryExists(variables.tmpDir)) directoryCreate(variables.tmpDir);

// create file
if(fileExists(trg)) fileDelete(trg);
Expand Down

0 comments on commit dc923af

Please sign in to comment.