diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-08-11 02:53:11 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-08-11 02:53:11 +0000 |
commit | e77edf053af3932acc370d66716ad3a41e96dda5 (patch) | |
tree | 10c7ec297214f53c3517ca9e8a4951999574bb90 | |
parent | fb2930da83caf43fd1994da0e01e33e11acfd4e9 (diff) | |
download | libhubbub-e77edf053af3932acc370d66716ad3a41e96dda5.tar.gz libhubbub-e77edf053af3932acc370d66716ad3a41e96dda5.tar.bz2 |
Add some tests for character encoding overrides.
svn path=/trunk/hubbub/; revision=5006
-rw-r--r-- | test/data/csdetect/INDEX | 1 | ||||
-rw-r--r-- | test/data/csdetect/overrides.dat | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/test/data/csdetect/INDEX b/test/data/csdetect/INDEX index 315ce6a..f873854 100644 --- a/test/data/csdetect/INDEX +++ b/test/data/csdetect/INDEX @@ -8,3 +8,4 @@ test-yahoo-jp.dat Yahoo! Japan, from html5lib testcases tests1.dat Assorted tests, including edge cases, from html5lib tests2.dat Further tests from html5lib regression.dat Regression tests +overrides.dat Character encoding overrides from 8.2.2.2. diff --git a/test/data/csdetect/overrides.dat b/test/data/csdetect/overrides.dat new file mode 100644 index 0000000..98f11fe --- /dev/null +++ b/test/data/csdetect/overrides.dat @@ -0,0 +1,29 @@ +#data +<meta charset="gb2312"> +#encoding +GBK + +#data +<meta charset="gb2312-80"> +#encoding +GBK + +#data +<meta charset="iso-8859-1"> +#encoding +Windows-1252 + +#data +<meta charset="iso-8859-9"> +#encoding +Windows-1254 + +#data +<meta charset="iso-8859-11"> +#encoding +Windows-874 + +#data +<meta charset="TIS-620"> +#encoding +Windows-874 |