diff options
Diffstat (limited to 'extensions/universalchardet')
50 files changed, 3032 insertions, 0 deletions
diff --git a/extensions/universalchardet/moz.build b/extensions/universalchardet/moz.build new file mode 100644 index 0000000000..2d4b7badfc --- /dev/null +++ b/extensions/universalchardet/moz.build @@ -0,0 +1,10 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +TEST_DIRS += ["tests"] + +with Files("**"): + BUG_COMPONENT = ("Core", "Internationalization") diff --git a/extensions/universalchardet/tests/CharsetDetectionTests.js b/extensions/universalchardet/tests/CharsetDetectionTests.js new file mode 100644 index 0000000000..8d6ebad964 --- /dev/null +++ b/extensions/universalchardet/tests/CharsetDetectionTests.js @@ -0,0 +1,48 @@ +/* -*- indent-tabs-mode: nil; js-indent-level: 4 -*- */ +/* vim: set ts=8 et sw=4 tw=80: */ + +var gExpectedCharset; +var gLocalDir; + +function CharsetDetectionTests(aTestFile, aExpectedCharset) { + gExpectedCharset = aExpectedCharset; + + InitDetectorTests(); + + var fileURI = gLocalDir + aTestFile; + $("testframe").src = fileURI; + + SimpleTest.waitForExplicitFinish(); +} + +function InitDetectorTests() { + var loader = Services.scriptloader; + var ioService = Services.io; + loader.loadSubScript("chrome://mochikit/content/chrome-harness.js"); + + $("testframe").onload = DoDetectionTest; + + if (gExpectedCharset == "default") { + // No point trying to be generic here, because we have plenty of other + // unit tests that fail if run using a non-windows-1252 locale. + gExpectedCharset = "windows-1252"; + } + + // Get the local directory. This needs to be a file: URI because chrome: + // URIs are always UTF-8 (bug 617339) and we are testing decoding from other + // charsets. + var jar = getJar(getRootDirectory(window.location.href)); + var dir = jar + ? extractJarToTmp(jar) + : getChromeDir(getResolvedURI(window.location.href)); + gLocalDir = ioService.newFileURI(dir).spec; +} + +function DoDetectionTest() { + var iframeDoc = $("testframe").contentDocument; + var charset = iframeDoc.characterSet; + + is(charset, gExpectedCharset, "decoded as " + gExpectedCharset); + + SimpleTest.finish(); +} diff --git a/extensions/universalchardet/tests/bug1071816-1_text.html b/extensions/universalchardet/tests/bug1071816-1_text.html new file mode 100644 index 0000000000..eae162afd5 --- /dev/null +++ b/extensions/universalchardet/tests/bug1071816-1_text.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<head> + <title>UTF-8</title> +</head> +<body> +§ +</body> +</html>
\ No newline at end of file diff --git a/extensions/universalchardet/tests/bug1071816-2_text.html b/extensions/universalchardet/tests/bug1071816-2_text.html new file mode 100644 index 0000000000..489f383c2e --- /dev/null +++ b/extensions/universalchardet/tests/bug1071816-2_text.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<head> + <title>windows-1252</title> +</head> +<body> +§ +</body> +</html>
\ No newline at end of file diff --git a/extensions/universalchardet/tests/bug1071816-3_text.html b/extensions/universalchardet/tests/bug1071816-3_text.html new file mode 100644 index 0000000000..c0bb397d0e --- /dev/null +++ b/extensions/universalchardet/tests/bug1071816-3_text.html @@ -0,0 +1,536 @@ +<!DOCTYPE html> +<html> +<head> + <title>UTF-8</title> +<!-- More than 1024 bytes +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +--> +</head> +<body> +§ +</body> +</html>
\ No newline at end of file diff --git a/extensions/universalchardet/tests/bug1071816-4_text.html b/extensions/universalchardet/tests/bug1071816-4_text.html new file mode 100644 index 0000000000..ee81cb1a50 --- /dev/null +++ b/extensions/universalchardet/tests/bug1071816-4_text.html @@ -0,0 +1,536 @@ +<!DOCTYPE html> +<html> +<head> + <title>windows-1252</title> +<!-- More than 1024 bytes +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +--> +</head> +<body> +§ +</body> +</html>
\ No newline at end of file diff --git a/extensions/universalchardet/tests/bug306272_text.html b/extensions/universalchardet/tests/bug306272_text.html new file mode 100644 index 0000000000..4a0c612834 --- /dev/null +++ b/extensions/universalchardet/tests/bug306272_text.html @@ -0,0 +1,9 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head> + + <title>306272</title> + + +</head><body> +<a href="mailto:Antti.Nayha@somewhere.fi">Antti NÀyhÀ <Antti.Nayha@somewhere.fi></a> +</body></html>
\ No newline at end of file diff --git a/extensions/universalchardet/tests/bug426271_text-euc-jp.html b/extensions/universalchardet/tests/bug426271_text-euc-jp.html new file mode 100644 index 0000000000..467d69c73e --- /dev/null +++ b/extensions/universalchardet/tests/bug426271_text-euc-jp.html @@ -0,0 +1,11 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html lang="ja"> +<head> +<title>ÆüËܞ쥚¥ó¥³¡Œ¥É¥Æ¥¹¥È</title> +</head> +<body> +€³€ì€ÏEUC-JP€Ç€¹ÀΡ¹¡¢€¢€ëœê€Ë»Ò¶¡€Î€€€Ê€€Ï·É×ÉØ€¬œ»€ó€Ç€€€¿¡£€¢€ëÆü¡¢€ªÇÌ€µ€ó€¬Àî€ÇÀöÂõ€ò€·€Æ€€€ë€È¡¢Â瀀ÊÅ퀬ή€ì€ÆÍ耿€Î€Ç¡¢€ªÌ쀵€ó€È¿©€Ù€è€Š€È»ý€Áµ¢€Ã€¿¡£Æó¿Í€ÇÅí€ò³ä€ë€ÈÃ怫€éÃˀλҀ¬Àž€Þ€ì€¿€Î€Ç¡¢¡ÖÅíÂÀϺ¡×€ÈÌŸÉÕ€±€ÆÂç»ö€Ë°é€Æ€¿¡£ + +À®Ä¹€·€¿ÅíÂÀϺ€Ï¡¢µŽ¥öÅç€ÎµŽ€¬¿Í¡¹€ò¶ì€·€á€Æ€€€ë€³€È€òÃ΀ꡢµŽÂàŒ£€ò·è°Õ€¹€ë¡£ÎŸ¿Æ€«€éµÐÃĻҀòñŽÊÌ€ËÌ ¡¢Æ»Ãæ€Ë€œ€ì€òʬ€±Í¿€š€Æ¥€¥Ì¡¢¥µ¥ë¡¢¥¥ž€ò²ÈÍè€ËœŸ€š€ë¡£µŽ¥öÅç€ÇµŽ€ÈÀ¡¢ž«»ö€ËŸ¡Íø€òŒý€á¡¢µŽ€¬Êý¡¹€«€éÃ¥€Ã€Æ€€€Ã€¿ºâÊõ€ò»ý€Áµ¢€ê¡¢€ªÌ쀵€ó¡Š€ªÇÌ€µ€ó€Îžµ€ËÊրꡢ¹¬€»€ËÊë€é€·€¿€È€€€Š¡£œÐŵ: ¥Õ¥ê¡ŒÉŽ²Ê»öŵ¡Ø¥Š¥£¥¥Ú¥Ç¥£¥¢¡ÊWikipedia¡Ë¡Ù +</body> +</html> diff --git a/extensions/universalchardet/tests/bug426271_text-utf-8.html b/extensions/universalchardet/tests/bug426271_text-utf-8.html new file mode 100644 index 0000000000..7e38c27c35 --- /dev/null +++ b/extensions/universalchardet/tests/bug426271_text-utf-8.html @@ -0,0 +1,11 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="ja">
+<head>
+<title>æ¥æ¬èªãšã³ã³ãŒããã¹ã</title>
+</head>
+<body>
+ããã¯UTF-8ã§ãæã
ãããæã«åäŸã®ããªãè倫婊ãäœãã§ãããããæ¥ããå©ãããå·ã§æŽæ¿¯ãããŠãããšã倧ããªæ¡ãæµããŠæ¥ãã®ã§ããçºãããšé£ã¹ãããšæã¡åž°ã£ããäºäººã§æ¡ãå²ããšäžããç·ã®åãçãŸããã®ã§ããæ¡å€ªéããšåä»ããŠå€§äºã«è²ãŠãã
+
+æé·ããæ¡å€ªéã¯ã鬌ã¶å³¶ã®é¬Œã人ã
ãèŠãããŠããããšãç¥ãã鬌éæ²»ã決æããã䞡芪ããé»å£åãé€å¥ã«è²°ããéäžã«ãããåãäžããŠã€ãããµã«ãããžã家æ¥ã«åŸããã鬌ã¶å³¶ã§é¬ŒãšæŠããèŠäºã«åå©ãåãã鬌ãæ¹ã
ãã奪ã£ãŠãã£ã財å®ãæã¡åž°ãããçºããã»ãå©ããã®å
ã«è¿ãã幞ãã«æ®ããããšãããåºå
ž: ããªãŒçŸç§äºå
žããŠã£ãããã£ã¢ïŒWikipediaïŒã
+</body>
+</html>
diff --git a/extensions/universalchardet/tests/bug431054_text.html b/extensions/universalchardet/tests/bug431054_text.html new file mode 100644 index 0000000000..aa88a4e1d2 --- /dev/null +++ b/extensions/universalchardet/tests/bug431054_text.html @@ -0,0 +1,5 @@ +<html> +<body> +¥í¥°¥€¥ó +</body> +</html> diff --git a/extensions/universalchardet/tests/bug620106_text.html b/extensions/universalchardet/tests/bug620106_text.html new file mode 100644 index 0000000000..b7ca0aca33 --- /dev/null +++ b/extensions/universalchardet/tests/bug620106_text.html @@ -0,0 +1,1045 @@ +<!DOCTYPE html> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +¥Æ¥¹¥È€Î¥š¥ó¥³¡Œ¥Ç¥£¥ó¥°€òž¡œÐ¡£€â€Š°ìÅ٥ƥ¹¥È¡£€Þ€À¥š¥ó¥³¡Œ¥É€Îž¡œÐ€ò¥Æ¥¹¥È€·€Þ€¹¡£€³€ì€¬Àµ€·€¯ž¡œÐ€µ€ì€Æ€€€Þ€¹€«¡© + diff --git a/extensions/universalchardet/tests/bug631751be_text.html b/extensions/universalchardet/tests/bug631751be_text.html Binary files differnew file mode 100644 index 0000000000..104d503998 --- /dev/null +++ b/extensions/universalchardet/tests/bug631751be_text.html diff --git a/extensions/universalchardet/tests/bug631751le_text.html b/extensions/universalchardet/tests/bug631751le_text.html Binary files differnew file mode 100644 index 0000000000..a1e5f6bfbd --- /dev/null +++ b/extensions/universalchardet/tests/bug631751le_text.html diff --git a/extensions/universalchardet/tests/bug638318_text.html b/extensions/universalchardet/tests/bug638318_text.html Binary files differnew file mode 100644 index 0000000000..3f2ff44212 --- /dev/null +++ b/extensions/universalchardet/tests/bug638318_text.html diff --git a/extensions/universalchardet/tests/bug811363-1.text b/extensions/universalchardet/tests/bug811363-1.text new file mode 100644 index 0000000000..a2952d62f7 --- /dev/null +++ b/extensions/universalchardet/tests/bug811363-1.text @@ -0,0 +1 @@ +Two-byte UTF-8 including the first and last characters in the range: ÂКеÑлПк߿ diff --git a/extensions/universalchardet/tests/bug811363-2.text b/extensions/universalchardet/tests/bug811363-2.text new file mode 100644 index 0000000000..b3b672635d --- /dev/null +++ b/extensions/universalchardet/tests/bug811363-2.text @@ -0,0 +1,3 @@ +Three byte UTF-8, first byte 0xE0, including first and last characters +in the range: à à€¶à€°à¥à€²à€à¿¿ + diff --git a/extensions/universalchardet/tests/bug811363-3.text b/extensions/universalchardet/tests/bug811363-3.text new file mode 100644 index 0000000000..29b6d4c581 --- /dev/null +++ b/extensions/universalchardet/tests/bug811363-3.text @@ -0,0 +1,3 @@ +Three byte UTF-8, first byte 0xE1-EC, including first and last characters +in the range: áã·ã£ãŒããã¯ì¿¿ + diff --git a/extensions/universalchardet/tests/bug811363-4.text b/extensions/universalchardet/tests/bug811363-4.text new file mode 100644 index 0000000000..f337d2e438 --- /dev/null +++ b/extensions/universalchardet/tests/bug811363-4.text @@ -0,0 +1,3 @@ +Three byte UTF-8, first byte 0xED, including first and last characters +in the range: íííííí¿ + diff --git a/extensions/universalchardet/tests/bug811363-5.text b/extensions/universalchardet/tests/bug811363-5.text new file mode 100644 index 0000000000..2827c8030f --- /dev/null +++ b/extensions/universalchardet/tests/bug811363-5.text @@ -0,0 +1,3 @@ +Three byte UTF-8, first byte 0xEE-EF, including first and last characters +in the range: îïŽï»ï»®ï»ï¿¿ + diff --git a/extensions/universalchardet/tests/bug811363-6.text b/extensions/universalchardet/tests/bug811363-6.text new file mode 100644 index 0000000000..c23e0077c4 --- /dev/null +++ b/extensions/universalchardet/tests/bug811363-6.text @@ -0,0 +1,3 @@ +Four byte UTF-8, first byte 0xF0, including first and last characters +in the range: ðð²ð¿ðð¹ððº ð¿¿¿ + diff --git a/extensions/universalchardet/tests/bug811363-7.text b/extensions/universalchardet/tests/bug811363-7.text new file mode 100644 index 0000000000..8a2c209f18 --- /dev/null +++ b/extensions/universalchardet/tests/bug811363-7.text @@ -0,0 +1,3 @@ +Four byte UTF-8, first byte 0xF1-F3, including first and last characters +in the range: ññ ñ ñ ó¿¿¿ + diff --git a/extensions/universalchardet/tests/bug811363-8.text b/extensions/universalchardet/tests/bug811363-8.text new file mode 100644 index 0000000000..b82f3da405 --- /dev/null +++ b/extensions/universalchardet/tests/bug811363-8.text @@ -0,0 +1,3 @@ +Four byte UTF-8, first byte 0xF4, including first and last characters +in the range:ôô ô ôô¿¿ + diff --git a/extensions/universalchardet/tests/bug811363-9.text b/extensions/universalchardet/tests/bug811363-9.text new file mode 100644 index 0000000000..50b232eafd --- /dev/null +++ b/extensions/universalchardet/tests/bug811363-9.text @@ -0,0 +1,2 @@ +Four byte UTF-8, first byte 0xF0, including BMP only:ð€ð€ð€ð€
ð€ + diff --git a/extensions/universalchardet/tests/bug811363-invalid-1.text b/extensions/universalchardet/tests/bug811363-invalid-1.text new file mode 100644 index 0000000000..8718c36d73 --- /dev/null +++ b/extensions/universalchardet/tests/bug811363-invalid-1.text @@ -0,0 +1,4 @@ +Orphaned continuation bytes:
+ + ¡¢£€¥Š§š©ª«¬®¯ +°±²³Žµ¶·ž¹º»ŒœŸ¿ diff --git a/extensions/universalchardet/tests/bug811363-invalid-5.text b/extensions/universalchardet/tests/bug811363-invalid-5.text new file mode 100644 index 0000000000..fa76449c28 --- /dev/null +++ b/extensions/universalchardet/tests/bug811363-invalid-5.text @@ -0,0 +1,3 @@ +Isolated surrogates: í í¿¿ +Surrogate pairs: í í° í¯¿í¿¿ + diff --git a/extensions/universalchardet/tests/chrome.toml b/extensions/universalchardet/tests/chrome.toml new file mode 100644 index 0000000000..767be95fda --- /dev/null +++ b/extensions/universalchardet/tests/chrome.toml @@ -0,0 +1,72 @@ +[DEFAULT] +support-files = [ + "CharsetDetectionTests.js", + "bug306272_text.html", + "bug426271_text-euc-jp.html", + "bug426271_text-utf-8.html", + "bug431054_text.html", + "bug631751be_text.html", + "bug631751le_text.html", + "bug638318_text.html", + "bug811363-1.text", + "bug811363-2.text", + "bug811363-3.text", + "bug811363-4.text", + "bug811363-5.text", + "bug811363-6.text", + "bug811363-7.text", + "bug811363-8.text", + "bug811363-9.text", + "bug811363-invalid-1.text", + "bug811363-invalid-5.text", + "bug1071816-1_text.html", + "bug1071816-2_text.html", + "bug1071816-3_text.html", + "bug1071816-4_text.html", +] + +["test_bug306272.html"] + +["test_bug426271-euc-jp.html"] + +["test_bug426271-utf-8.html"] + +["test_bug431054-japanese.html"] + +["test_bug431054.html"] + +["test_bug631751be.html"] + +["test_bug631751le.html"] + +["test_bug638318.html"] + +["test_bug811363-1-1.html"] + +["test_bug811363-1-5.html"] + +["test_bug811363-2-1.html"] + +["test_bug811363-2-2.html"] + +["test_bug811363-2-3.html"] + +["test_bug811363-2-4.html"] + +["test_bug811363-2-5.html"] + +["test_bug811363-2-6.html"] + +["test_bug811363-2-7.html"] + +["test_bug811363-2-8.html"] + +["test_bug811363-2-9.html"] + +["test_bug1071816-1.html"] + +["test_bug1071816-2.html"] + +["test_bug1071816-3.html"] + +["test_bug1071816-4.html"] diff --git a/extensions/universalchardet/tests/moz.build b/extensions/universalchardet/tests/moz.build new file mode 100644 index 0000000000..36ed046708 --- /dev/null +++ b/extensions/universalchardet/tests/moz.build @@ -0,0 +1,7 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +MOCHITEST_CHROME_MANIFESTS += ["chrome.toml"] diff --git a/extensions/universalchardet/tests/test_bug1071816-1.html b/extensions/universalchardet/tests/test_bug1071816-1.html new file mode 100644 index 0000000000..9d9ea95dd6 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug1071816-1.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=1071816 +--> +<head> + <title>Test for Bug 1071816</title> + <script type="text/javascript" + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1071816">Mozilla Bug 1071816</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 1071816 */ +/* Note! This test uses the chardet test harness but doesn't test chardet! */ +CharsetDetectionTests("bug1071816-1_text.html", + "UTF-8", + new Array("")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug1071816-2.html b/extensions/universalchardet/tests/test_bug1071816-2.html new file mode 100644 index 0000000000..fde4e8d374 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug1071816-2.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=1071816 +--> +<head> + <title>Test for Bug 1071816</title> + <script type="text/javascript" + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1071816">Mozilla Bug 1071816</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 1071816 */ +/* Note! This test uses the chardet test harness but doesn't test chardet! */ +CharsetDetectionTests("bug1071816-2_text.html", + "windows-1252", + new Array("")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug1071816-3.html b/extensions/universalchardet/tests/test_bug1071816-3.html new file mode 100644 index 0000000000..adb8be46bb --- /dev/null +++ b/extensions/universalchardet/tests/test_bug1071816-3.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=1071816 +--> +<head> + <title>Test for Bug 1071816</title> + <script type="text/javascript" + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1071816">Mozilla Bug 1071816</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 1071816 */ +/* Note! This test uses the chardet test harness but doesn't test chardet! */ +CharsetDetectionTests("bug1071816-3_text.html", + "UTF-8", + new Array("")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug1071816-4.html b/extensions/universalchardet/tests/test_bug1071816-4.html new file mode 100644 index 0000000000..d5c99b3a66 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug1071816-4.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=1071816 +--> +<head> + <title>Test for Bug 1071816</title> + <script type="text/javascript" + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1071816">Mozilla Bug 1071816</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 1071816 */ +/* Note! This test uses the chardet test harness but doesn't test chardet! */ +CharsetDetectionTests("bug1071816-4_text.html", + "windows-1252", + new Array("")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug306272.html b/extensions/universalchardet/tests/test_bug306272.html new file mode 100644 index 0000000000..e1b99a0e51 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug306272.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=306272 +--> +<head> + <title>Test for Bug 306272</title> + <script type="text/javascript" + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=306272">Mozilla Bug 306272</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 306272 */ +CharsetDetectionTests("bug306272_text.html", + "UTF-8", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> + diff --git a/extensions/universalchardet/tests/test_bug426271-euc-jp.html b/extensions/universalchardet/tests/test_bug426271-euc-jp.html new file mode 100644 index 0000000000..f1a2688298 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug426271-euc-jp.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=426271 +--> +<head> + <title>Test for Bug 426271</title> + <script type="text/javascript" + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=426271">Mozilla Bug 426271</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 426271 */ +CharsetDetectionTests("bug426271_text-euc-jp.html", + "EUC-JP", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> + diff --git a/extensions/universalchardet/tests/test_bug426271-utf-8.html b/extensions/universalchardet/tests/test_bug426271-utf-8.html new file mode 100644 index 0000000000..70ad00d2cc --- /dev/null +++ b/extensions/universalchardet/tests/test_bug426271-utf-8.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=426271 +--> +<head> + <title>Test for Bug 426271</title> + <script type="text/javascript" + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=426271">Mozilla Bug 426271</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 426271 */ +CharsetDetectionTests("bug426271_text-utf-8.html", + "UTF-8", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> + diff --git a/extensions/universalchardet/tests/test_bug431054-japanese.html b/extensions/universalchardet/tests/test_bug431054-japanese.html new file mode 100644 index 0000000000..21f76a759b --- /dev/null +++ b/extensions/universalchardet/tests/test_bug431054-japanese.html @@ -0,0 +1,30 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=431054 +--> +<head> + <title>Test for Bug 431054</title> + <script type="text/javascript" + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=426271">Mozilla Bug 431054</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 431054 */ +CharsetDetectionTests("bug431054_text.html", + "EUC-JP", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug431054.html b/extensions/universalchardet/tests/test_bug431054.html new file mode 100644 index 0000000000..71a5ec7656 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug431054.html @@ -0,0 +1,34 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=431054 +--> +<head> + <title>Test for Bug 431054</title> + <script type="text/javascript" + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=426271">Mozilla Bug 431054</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 431054 */ +CharsetDetectionTests("bug431054_text.html", + "EUC-JP", + ["zhtw_parallel_state_machine", + "zhcn_parallel_state_machine", + "zh_parallel_state_machine", + "cjk_parallel_state_machine", + "universal_charset_detector"]); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug631751be.html b/extensions/universalchardet/tests/test_bug631751be.html new file mode 100644 index 0000000000..9333050ae8 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug631751be.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=631751 +--> +<head> + <title>Test for Bug 631751</title> + <script type="text/javascript" + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=631751">Mozilla Bug 631751</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 631751 */ +/* Note! This test uses the chardet test harness but doesn't test chardet! */ +CharsetDetectionTests("bug631751be_text.html", + "UTF-8", // Test runs from file: URL, so ASCII gets detected as UTF-8. + new Array("")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug631751le.html b/extensions/universalchardet/tests/test_bug631751le.html new file mode 100644 index 0000000000..36725a3a91 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug631751le.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=631751 +--> +<head> + <title>Test for Bug 631751</title> + <script type="text/javascript" + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=631751">Mozilla Bug 631751</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 631751 */ +/* Note! This test uses the chardet test harness but doesn't test chardet! */ +CharsetDetectionTests("bug631751le_text.html", + "UTF-8", // Test runs from file: URL, so ASCII gets detected as UTF-8. + new Array("")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug638318.html b/extensions/universalchardet/tests/test_bug638318.html new file mode 100644 index 0000000000..ee49b5097c --- /dev/null +++ b/extensions/universalchardet/tests/test_bug638318.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=638318 +--> +<head> + <title>Test for Bug 638318</title> + <script type="text/javascript" + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=638318">Mozilla Bug 638318</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 638318 */ +/* Note! This test uses the chardet test harness but doesn't test chardet! */ +CharsetDetectionTests("bug638318_text.html", + "UTF-8", + new Array("")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug811363-1-1.html b/extensions/universalchardet/tests/test_bug811363-1-1.html new file mode 100644 index 0000000000..79a0d6d523 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug811363-1-1.html @@ -0,0 +1,29 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=811363 +--> +<head> + <title>Test for Bug 811363</title> + <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811363">Mozilla Bug 811363</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 811363 */ +CharsetDetectionTests("bug811363-invalid-1.text", + "windows-1252", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug811363-1-5.html b/extensions/universalchardet/tests/test_bug811363-1-5.html new file mode 100644 index 0000000000..70429f1c5f --- /dev/null +++ b/extensions/universalchardet/tests/test_bug811363-1-5.html @@ -0,0 +1,29 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=811363 +--> +<head> + <title>Test for Bug 811363</title> + <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811363">Mozilla Bug 811363</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 811363 */ +CharsetDetectionTests("bug811363-invalid-5.text", + "windows-1251", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug811363-2-1.html b/extensions/universalchardet/tests/test_bug811363-2-1.html new file mode 100644 index 0000000000..3325b1889d --- /dev/null +++ b/extensions/universalchardet/tests/test_bug811363-2-1.html @@ -0,0 +1,29 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=811363 +--> +<head> + <title>Test for Bug 811363</title> + <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811363">Mozilla Bug 811363</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 811363 */ +CharsetDetectionTests("bug811363-1.text", + "UTF-8", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug811363-2-2.html b/extensions/universalchardet/tests/test_bug811363-2-2.html new file mode 100644 index 0000000000..31bdde7297 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug811363-2-2.html @@ -0,0 +1,29 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=811363 +--> +<head> + <title>Test for Bug 811363</title> + <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811363">Mozilla Bug 811363</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 811363 */ +CharsetDetectionTests("bug811363-2.text", + "UTF-8", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug811363-2-3.html b/extensions/universalchardet/tests/test_bug811363-2-3.html new file mode 100644 index 0000000000..73efbe347f --- /dev/null +++ b/extensions/universalchardet/tests/test_bug811363-2-3.html @@ -0,0 +1,29 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=811363 +--> +<head> + <title>Test for Bug 811363</title> + <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811363">Mozilla Bug 811363</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 811363 */ +CharsetDetectionTests("bug811363-3.text", + "UTF-8", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug811363-2-4.html b/extensions/universalchardet/tests/test_bug811363-2-4.html new file mode 100644 index 0000000000..f9d90918d9 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug811363-2-4.html @@ -0,0 +1,29 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=811363 +--> +<head> + <title>Test for Bug 811363</title> + <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811363">Mozilla Bug 811363</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 811363 */ +CharsetDetectionTests("bug811363-4.text", + "UTF-8", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug811363-2-5.html b/extensions/universalchardet/tests/test_bug811363-2-5.html new file mode 100644 index 0000000000..a450ec0527 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug811363-2-5.html @@ -0,0 +1,29 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=811363 +--> +<head> + <title>Test for Bug 811363</title> + <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811363">Mozilla Bug 811363</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 811363 */ +CharsetDetectionTests("bug811363-5.text", + "UTF-8", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug811363-2-6.html b/extensions/universalchardet/tests/test_bug811363-2-6.html new file mode 100644 index 0000000000..18fb254043 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug811363-2-6.html @@ -0,0 +1,29 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=811363 +--> +<head> + <title>Test for Bug 811363</title> + <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811363">Mozilla Bug 811363</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 811363 */ +CharsetDetectionTests("bug811363-6.text", + "UTF-8", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug811363-2-7.html b/extensions/universalchardet/tests/test_bug811363-2-7.html new file mode 100644 index 0000000000..c7e571589a --- /dev/null +++ b/extensions/universalchardet/tests/test_bug811363-2-7.html @@ -0,0 +1,29 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=811363 +--> +<head> + <title>Test for Bug 811363</title> + <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811363">Mozilla Bug 811363</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 811363 */ +CharsetDetectionTests("bug811363-7.text", + "UTF-8", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug811363-2-8.html b/extensions/universalchardet/tests/test_bug811363-2-8.html new file mode 100644 index 0000000000..fb7951d7c0 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug811363-2-8.html @@ -0,0 +1,29 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=811363 +--> +<head> + <title>Test for Bug 811363</title> + <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811363">Mozilla Bug 811363</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 811363 */ +CharsetDetectionTests("bug811363-8.text", + "UTF-8", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> diff --git a/extensions/universalchardet/tests/test_bug811363-2-9.html b/extensions/universalchardet/tests/test_bug811363-2-9.html new file mode 100644 index 0000000000..47156e4d54 --- /dev/null +++ b/extensions/universalchardet/tests/test_bug811363-2-9.html @@ -0,0 +1,29 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=811363 +--> +<head> + <title>Test for Bug 811363</title> + <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"> + </script> + <script type="text/javascript" src="CharsetDetectionTests.js"></script> + <link rel="stylesheet" type="text/css" + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811363">Mozilla Bug 811363</a> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<iframe id="testframe"></iframe> +<pre id="test"> +<script class="testbody" type="text/javascript"> +/** Test for Bug 811363 */ +CharsetDetectionTests("bug811363-9.text", + "UTF-8", + new Array("ja_parallel_state_machine")); +</script> +</pre> +</body> +</html> |