Skip to content

Commit

Permalink
fix download of svg images
Browse files Browse the repository at this point in the history
  • Loading branch information
car-roll committed Nov 24, 2021
1 parent 03309e6 commit fce432c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.io.IOException;
import java.util.List;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

/**
Expand Down Expand Up @@ -48,9 +49,11 @@ public void testDeletedPromotionProcess() throws Exception {
}
HtmlImage img = (HtmlImage)candidate;
try {
img.getHeight();
assertEquals("Failed to load " + img.getSrcAttribute(),
200,
img.getWebResponse(true).getStatusCode());
} catch (IOException e) {
throw new IOException2("Failed to load "+img.getSrcAttribute(),e);
throw new AssertionError("Failed to load " + img.getSrcAttribute());
}
}
}
Expand Down

0 comments on commit fce432c

Please sign in to comment.