]> thyrsus.com Git - imgsizer.git/commitdiff
Restore our test files, and ensure they're not deleted again.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 20 Oct 2010 15:57:08 +0000 (11:57 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 20 Oct 2010 15:57:08 +0000 (11:57 -0400)
Makefile
test-before.html [new file with mode: 0644]
test-converted.html [new file with mode: 0644]

index acc825c474955a38867463942befa9175c16b41b..06e3f0cf8c9365e6d19ad0b109513284a72437b1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ uninstall:
 clean:
        rm -f imgsizer.1 *~ 
        rm -f imgsizer-*-1.noarch.rpm imgsizer-*-1.noarch.rpm imgsizer-*.tar.gz
-       rm -f test-after.html
+       rm -f test-after.html index.html imgsizer
 
 imgsizer.1: imgsizer.xml
        xmlto man imgsizer.xml
@@ -39,4 +39,4 @@ test:
 dist: imgsizer-$(VERS).tar.gz
 
 release: imgsizer-$(VERS).tar.gz imgsizer.html
-       shipper -f; rm -f CHANGES ANNOUNCE* *.1 *.html *.rpm *.lsm
+       shipper - u -m -t; make clean
diff --git a/test-before.html b/test-before.html
new file mode 100644 (file)
index 0000000..a3c8966
--- /dev/null
@@ -0,0 +1,31 @@
+<html><head><title>Imgsizer Testfile</title></head><body>
+Ok: absolute URL<br>
+<img src="http://www.catb.org/~esr/fetchmail/fetchmail.png"><hr>
+Error: no src-tag<br>
+<img ><hr>
+Warn: no quotes (we don't insert them)<br>
+<img src=test.png><hr>
+A tag (alt), which should be skipped by imgsize<br>
+<img src="test.png" alt="Dummy Picture" width=320 height=200><hr>
+Warn: whitespace<br>
+<img    src = "test.png"         width=    "50"><hr>
+Warn: whitespace and a newline<br>
+<img    src = "test.png"         
+width=    "50"><hr>
+Ok: relative URL<br>
+<img src="test.png" width=320 height=200><hr>
+Ok: also relative<br>
+<img src="../imgsizer-1.2/test.png"><hr>
+Don't overwrite an existing single width-tag<br>
+<IMG src="test.png" width="50">Imgsizer should calculate the height-tag<hr>
+Warn: A single existing height-tag<br>
+<img src="test.png" height="50">should be ignored and overwritten.<hr>
+Both tags given: Don't overwrite anything<br>
+<img src="test.png" width="50" height="50"><hr>
+Paranoia ;-)<br>
+<img src="test.png" height="50" width="50"><hr>
+A given relative width<br>
+<img src="test.png" width="50%">the img should be skipped.<hr>
+Try a JPEG
+<img src="tnhd2.jpg">
+</body></html>
diff --git a/test-converted.html b/test-converted.html
new file mode 100644 (file)
index 0000000..b44c5b2
--- /dev/null
@@ -0,0 +1,31 @@
+<html><head><title>Imgsizer Testfile</title></head><body>
+Ok: absolute URL<br>
+<img src="http://www.catb.org/~esr/fetchmail/fetchmail.png" width="60" height="40"><hr>
+Error: no src-tag<br>
+<img ><hr>
+Warn: no quotes (we don't insert them)<br>
+<img src=test.png width="320" height="200"><hr>
+A tag (alt), which should be skipped by imgsize<br>
+<img src="test.png" alt="Dummy Picture" width="320" height="200"><hr>
+Warn: whitespace<br>
+<img    src = "test.png" width="320" height="200"><hr>
+Warn: whitespace and a newline<br>
+<img    src = "test.png"         
+ width="320" height="200"><hr>
+Ok: relative URL<br>
+<img src="test.png" width="320" height="200"><hr>
+Ok: also relative<br>
+<img src="../imgsizer-1.2/test.png"><hr>
+Don't overwrite an existing single width-tag<br>
+<IMG src="test.png" WIDTH="320" HEIGHT="200">Imgsizer should calculate the height-tag<hr>
+Warn: A single existing height-tag<br>
+<img src="test.png" width="320" height="200">should be ignored and overwritten.<hr>
+Both tags given: Don't overwrite anything<br>
+<img src="test.png" width="320" height="200"><hr>
+Paranoia ;-)<br>
+<img src="test.png" width="320" height="200"><hr>
+A given relative width<br>
+<img src="test.png" width="50%">the img should be skipped.<hr>
+Try a JPEG
+<img src="tnhd2.jpg" width="381" height="599">
+</body></html>