From 3d3e3b0dfda0fe808039b4b8e8b455bc0ea1b704 Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Sat, 9 Aug 2008 15:47:34 +0000 Subject: Bring encoding detection tests up-to-date with html5lib, fix Hubbub-specific ones, and bring the csdetect algorithm up-to-date with that in the spec. svn path=/trunk/hubbub/; revision=4974 --- test/data/csdetect/bom.dat | Bin 639 -> 643 bytes test/data/csdetect/non-ascii-meta.dat | 18 ++-- test/data/csdetect/test-yahoo-jp.dat | 2 +- test/data/csdetect/tests1.dat | 192 +++++++++++++++++----------------- test/data/csdetect/tests2.dat | 44 ++++++-- 5 files changed, 145 insertions(+), 111 deletions(-) (limited to 'test/data') diff --git a/test/data/csdetect/bom.dat b/test/data/csdetect/bom.dat index 9a2f719..0622945 100644 Binary files a/test/data/csdetect/bom.dat and b/test/data/csdetect/bom.dat differ diff --git a/test/data/csdetect/non-ascii-meta.dat b/test/data/csdetect/non-ascii-meta.dat index ea2a707..e1d35b8 100644 --- a/test/data/csdetect/non-ascii-meta.dat +++ b/test/data/csdetect/non-ascii-meta.dat @@ -3,63 +3,63 @@ #encoding -windows-1252 +utf-8 #data #encoding -windows-1252 +utf-8 #data #encoding -windows-1252 +utf-8 #data #encoding -windows-1252 +utf-8 #data #encoding -windows-1252 +utf-8 #data #encoding -windows-1252 +utf-8 #data #encoding -windows-1252 +utf-8 #data #encoding -windows-1252 +utf-8 #data #encoding -windows-1252 +utf-8 diff --git a/test/data/csdetect/test-yahoo-jp.dat b/test/data/csdetect/test-yahoo-jp.dat index daf6125..3c25ecb 100644 --- a/test/data/csdetect/test-yahoo-jp.dat +++ b/test/data/csdetect/test-yahoo-jp.dat @@ -7,4 +7,4 @@ + #encoding -ISO-8859-9 +iso8859-2 #data -

+

#encoding -ISO-8859-9 +iso8859-2 #data - + #encoding -ISO-8859-9 +iso8859-2 diff --git a/test/data/csdetect/tests2.dat b/test/data/csdetect/tests2.dat index dd43f85..1908dec 100644 --- a/test/data/csdetect/tests2.dat +++ b/test/data/csdetect/tests2.dat @@ -19,20 +19,19 @@ windows-1252 windows-1252 #data - + #encoding -EUC-jp +euc_jp #data - + #encoding -EUC-jp - +euc_jp #data @@ -80,3 +79,36 @@ windows-1252 +#encoding +utf-8 + +#data + +#encoding +utf-8 + +#data + +#encoding +utf-8 + +#data + + +#encoding +utf-8 + +#data + + +#encoding +utf-8 + +#data +ñ + +#encoding +utf-8 -- cgit v1.2.3