BufferedImage test = testBuffImg.getSubimage(sizes[1],
sizes[0], testBuffImg.getWidth()
- (sizes[1] + sizes[3]),
testBuffImg.getHeight() - (sizes[0] + sizes[2]));
Comparator ic = comparator == null ? new DefaultComparator(base.getWidth()/configHelper.getGranularity(),
base.getHeight()/configHelper.getGranularity(), configHelper.getLeniency()):
comparator;
BufferedImage imgc = ic.compare(base, test);
if (imgc != null && checkMatrix(ic, configHelper.getLeniency())) {
File subDir = new File(resultDirStr + File.separator + caseID);
if (!subDir.isDirectory())
subDir.mkdirs();
subDir = new File(subDir, caseID + "_" + browserName + "_result" + postfix);