diff options
Diffstat (limited to 'test/data/csdetect')
-rw-r--r-- | test/data/csdetect/INDEX | 6 | ||||
-rw-r--r-- | test/data/csdetect/bom-charset.dat | 21 | ||||
-rw-r--r-- | test/data/csdetect/bom.dat | bin | 0 -> 388 bytes |
3 files changed, 27 insertions, 0 deletions
diff --git a/test/data/csdetect/INDEX b/test/data/csdetect/INDEX new file mode 100644 index 0000000..fba6328 --- /dev/null +++ b/test/data/csdetect/INDEX @@ -0,0 +1,6 @@ +# Index file for charset detection tests +# +# Test Description + +bom.dat UTF Byte Order Mark detection tests +bom-charset.dat BOM + @charset tests diff --git a/test/data/csdetect/bom-charset.dat b/test/data/csdetect/bom-charset.dat new file mode 100644 index 0000000..b6eb9f7 --- /dev/null +++ b/test/data/csdetect/bom-charset.dat @@ -0,0 +1,21 @@ +#data +@charset "UTF-8";html{color:green} +/* starts with utf-8 bom */ +#encoding +utf-8 + +#data +@charset "ISO-8859-1";html{color:green} +/* starts with utf-8 bom, so @charset is ignored */ +#encoding +utf-8 + +#data +@charset "ISO-8859-2";html{color:green} +#encoding +iso-8859-2 + +#data +@charset "IMadeThisUp";html{color:green} +#encoding +utf-8 diff --git a/test/data/csdetect/bom.dat b/test/data/csdetect/bom.dat Binary files differnew file mode 100644 index 0000000..f8c3070 --- /dev/null +++ b/test/data/csdetect/bom.dat |