OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
3 <script src=../../../resources/testharness.js></script> | 3 <script src=../../../resources/testharness.js></script> |
4 <script src=../../../resources/testharnessreport.js></script> | 4 <script src=../../../resources/testharnessreport.js></script> |
5 <div id=log></div> | 5 <div id=log></div> |
6 <script> | 6 <script> |
7 function decode(input, output, desc) { | 7 function decode(input, output, desc) { |
8 test(function() { | 8 test(function() { |
9 var d = new TextDecoder("iso-2022-jp"), | 9 var d = new TextDecoder("iso-2022-jp"), |
10 buffer = new ArrayBuffer(input.length), | 10 buffer = new ArrayBuffer(input.length), |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 decode([0x50, 0x1b], "P�", "character, error ESC") | 49 decode([0x50, 0x1b], "P�", "character, error ESC") |
50 decode([0x50, 0x1b, 0x24], "P�$", "character, error ESC #2") | 50 decode([0x50, 0x1b, 0x24], "P�$", "character, error ESC #2") |
51 decode([0x50, 0x1b, 0x50], "P�P", "character, error ESC #3") | 51 decode([0x50, 0x1b, 0x50], "P�P", "character, error ESC #3") |
52 decode([0x50, 0x1b, 0x28, 0x42], "P", "character, ASCII ESC") | 52 decode([0x50, 0x1b, 0x28, 0x42], "P", "character, ASCII ESC") |
53 decode([0x50, 0x1b, 0x28, 0x4A], "P", "character, Roman ESC") | 53 decode([0x50, 0x1b, 0x28, 0x4A], "P", "character, Roman ESC") |
54 decode([0x50, 0x1b, 0x28, 0x49], "P", "character, Katakana ESC") | 54 decode([0x50, 0x1b, 0x28, 0x49], "P", "character, Katakana ESC") |
55 decode([0x50, 0x1b, 0x24, 0x40], "P", "character, Multibyte ESC") | 55 decode([0x50, 0x1b, 0x24, 0x40], "P", "character, Multibyte ESC") |
56 decode([0x50, 0x1b, 0x24, 0x42], "P", "character, Multibyte ESC #2") | 56 decode([0x50, 0x1b, 0x24, 0x42], "P", "character, Multibyte ESC #2") |
57 </script> | 57 </script> |
OLD | NEW |