From e4681f8907fd5cc5419fa64a2734cdd18cd7960d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 20 Oct 2010 11:57:08 -0400 Subject: [PATCH] Restore our test files, and ensure they're not deleted again. --- Makefile | 4 ++-- test-before.html | 31 +++++++++++++++++++++++++++++++ test-converted.html | 31 +++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 test-before.html create mode 100644 test-converted.html diff --git a/Makefile b/Makefile index acc825c..06e3f0c 100644 --- 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 index 0000000..a3c8966 --- /dev/null +++ b/test-before.html @@ -0,0 +1,31 @@ +Imgsizer Testfile +Ok: absolute URL
+
+Error: no src-tag
+
+Warn: no quotes (we don't insert them)
+
+A tag (alt), which should be skipped by imgsize
+Dummy Picture
+Warn: whitespace
+
+Warn: whitespace and a newline
+
+Ok: relative URL
+
+Ok: also relative
+
+Don't overwrite an existing single width-tag
+Imgsizer should calculate the height-tag
+Warn: A single existing height-tag
+should be ignored and overwritten.
+Both tags given: Don't overwrite anything
+
+Paranoia ;-)
+
+A given relative width
+the img should be skipped.
+Try a JPEG + + diff --git a/test-converted.html b/test-converted.html new file mode 100644 index 0000000..b44c5b2 --- /dev/null +++ b/test-converted.html @@ -0,0 +1,31 @@ +Imgsizer Testfile +Ok: absolute URL
+
+Error: no src-tag
+
+Warn: no quotes (we don't insert them)
+
+A tag (alt), which should be skipped by imgsize
+Dummy Picture
+Warn: whitespace
+
+Warn: whitespace and a newline
+
+Ok: relative URL
+
+Ok: also relative
+
+Don't overwrite an existing single width-tag
+Imgsizer should calculate the height-tag
+Warn: A single existing height-tag
+should be ignored and overwritten.
+Both tags given: Don't overwrite anything
+
+Paranoia ;-)
+
+A given relative width
+the img should be skipped.
+Try a JPEG + + -- 2.43.0