extensions/universalchardet/tests/test_bug638318.html
author Henri Sivonen <hsivonen@iki.fi>
Thu, 03 Mar 2011 19:20:00 +0200
changeset 63322 770e2709cff513f8690c27cd0c78d7a62849847c
child 74314 67f6f1908b0f4cb8c00d3de763787fdb8fe8eeeb
permissions -rw-r--r--
Test for bug 638318 - Test that a byte run that has more than 1024 zeros but one non-zero byte among them before the 1024 byte limit does not sniff as UTF-16LE/BE. r=bzbarsky, a=test-only.

<!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/MochiKit/packed.js"></script>
  <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",
		      "ISO-8859-1",
		      new Array(""));
</script>
</pre>
</body>
</html>