intl/uconv/tests/unit/test_bug116882.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/uconv/tests/unit/test_bug116882.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,13 @@
     1.4 +/* Tests conversion of undefined and illegal sequences from Shift-JIS
     1.5 + *  to Unicode (bug 116882)
     1.6 + */
     1.7 +
     1.8 +const inText = "\xfd\xfe\xff\x81\x20\x81\x3f\x86\x3c";
     1.9 +const expectedText = "\uf8f1\uf8f2\uf8f3\ufffd \ufffd?\ufffd<";
    1.10 +const charset = "Shift_JIS";
    1.11 +    
    1.12 +load('CharsetConversionTests.js');
    1.13 +
    1.14 +function run_test() {
    1.15 +  checkDecode(CreateScriptableConverter(), charset, inText, expectedText);
    1.16 +}

mercurial