Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/encoding/iso-2022-jp-decoder.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698