intl/uconv/tests/test_singlebyte_overconsumption.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/uconv/tests/test_singlebyte_overconsumption.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=564679
     1.8 +-->
     1.9 +<head>
    1.10 +  <meta http-equiv="Content-type" content="text/html; charset=windows-1253">
    1.11 +  <title>Test for undefined codepoints</title>
    1.12 +  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.13 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    1.14 +</head>
    1.15 +<body onload="test()">
    1.16 +<pre id="test">
    1.17 +<script class="testbody" type="text/javascript">
    1.18 +
    1.19 +/** test that single byte decoding resynchronizes after undefined codepoints */
    1.20 +function test()
    1.21 +{
    1.22 +    is($("display").innerHTML, "All good.", "No overconsumption");
    1.23 +    SimpleTest.finish();
    1.24 +}
    1.25 +
    1.26 +  SimpleTest.waitForExplicitFinish();
    1.27 +</script>
    1.28 +</pre>
    1.29 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=564679">Mozilla Bug 564679</a>
    1.30 +<p id="display">Evil.</p>
    1.31 +<div id="content" style="display: none"></div>
    1.32 + Ò<script type="text/javascript">
    1.33 + $("display").innerHTML = "All good.";
    1.34 +  </script> ->
    1.35 +</body>
    1.36 +</html>

mercurial