Final updates to use local test images rather than remote

git-svn-id: https://zxing.googlecode.com/svn/trunk@432 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2008-06-16 16:29:48 +00:00
parent ab3a9bf493
commit b5b4351727
21 changed files with 2 additions and 20 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -1 +0,0 @@
http://writerresponsetheory.org/wordpress/wp-content/uploads/qrcode_01.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -1 +0,0 @@
http://www.google.co.jp/mobile/images/qrcode_mobile.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -1 +0,0 @@
http://www.d-co.de/images/qrcode_eg1.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

View file

@ -1 +0,0 @@
http://writerresponsetheory.org/query/poe/qrcode%20outputs/qrcodegen-examples/chunk-from-128-bug-head/encodes-by-nfggames/qr-chunk-from-128-bughead-ground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

View file

@ -1 +0,0 @@
http://www.qrcodeblog.com/qr/0609/060902_qr_kawasaki_st02.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

View file

@ -1 +0,0 @@
http://mobile.kaywa.com/files/images/2007/4/480/mob181_1175524511.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

View file

@ -1 +0,0 @@
http://www.smoothplanet.com/files/images/2007/2/mob281_1170754866.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -1 +0,0 @@
http://www.mobileviews.com/blog/wp-content/uploads/2006/11/livebarcode.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

View file

@ -1 +0,0 @@
http://staticrooster.com/tshirts/qr_sm.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 B

View file

@ -1 +0,0 @@
http://www.ihaveanidea.org/blogs/uploads/i/interactive/270.png

View file

@ -35,7 +35,6 @@ import java.io.FileInputStream;
import java.io.FilenameFilter; import java.io.FilenameFilter;
import java.io.IOException; import java.io.IOException;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import java.net.URL;
import java.util.Hashtable; import java.util.Hashtable;
import java.util.Vector; import java.util.Vector;
@ -55,8 +54,7 @@ public abstract class AbstractBlackBoxTestCase extends TestCase {
public boolean accept(File dir, String name) { public boolean accept(File dir, String name) {
String lowerCase = name.toLowerCase(); String lowerCase = name.toLowerCase();
return lowerCase.endsWith(".jpg") || lowerCase.endsWith(".jpeg") || return lowerCase.endsWith(".jpg") || lowerCase.endsWith(".jpeg") ||
lowerCase.endsWith(".gif") || lowerCase.endsWith(".png") || lowerCase.endsWith(".gif") || lowerCase.endsWith(".png");
lowerCase.endsWith(".url");
} }
}; };
@ -108,13 +106,7 @@ public abstract class AbstractBlackBoxTestCase extends TestCase {
for (File testImage : imageFiles) { for (File testImage : imageFiles) {
System.out.println("Starting " + testImage.getAbsolutePath()); System.out.println("Starting " + testImage.getAbsolutePath());
BufferedImage image; BufferedImage image = ImageIO.read(testImage);
if (testImage.getName().endsWith(".url")) {
String urlString = readFileAsString(testImage);
image = ImageIO.read(new URL(urlString));
} else {
image = ImageIO.read(testImage);
}
String testImageFileName = testImage.getName(); String testImageFileName = testImage.getName();
File expectedTextFile = new File(testBase, File expectedTextFile = new File(testBase,