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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/encoding/api-basics.html

Issue 1990653002: Move the encoding directory from web-platform-tests/ to wpt/. (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 <title>Encoding API: Basics</title> 2 <title>Encoding API: Basics</title>
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 <script> 5 <script>
6 6
7 test(function() { 7 test(function() {
8 assert_equals((new TextEncoder).encoding, 'utf-8', 'default encoding is utf- 8'); 8 assert_equals((new TextEncoder).encoding, 'utf-8', 'default encoding is utf- 8');
9 assert_equals((new TextDecoder).encoding, 'utf-8', 'default encoding is utf- 8'); 9 assert_equals((new TextDecoder).encoding, 'utf-8', 'default encoding is utf- 8');
10 }, 'Default encodings'); 10 }, 'Default encodings');
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 [0x00, 0x7A, 0x00, 0xA2, 0x6C, 0x34, 0xD8, 0x34, 0xDD, 0x1E, 0xF8, 0xFF, 0xDB, 0xFF, 0xDF, 0xFD, 0xFF, 0xFE] 49 [0x00, 0x7A, 0x00, 0xA2, 0x6C, 0x34, 0xD8, 0x34, 0xDD, 0x1E, 0xF8, 0xFF, 0xDB, 0xFF, 0xDF, 0xFD, 0xFF, 0xFE]
50 ); 50 );
51 51
52 testDecodeSample( 52 testDecodeSample(
53 'utf-16', 53 'utf-16',
54 sample, 54 sample,
55 [0x7A, 0x00, 0xA2, 0x00, 0x34, 0x6C, 0x34, 0xD8, 0x1E, 0xDD, 0xFF, 0xF8, 0xFF, 0xDB, 0xFD, 0xDF, 0xFE, 0xFF] 55 [0x7A, 0x00, 0xA2, 0x00, 0x34, 0x6C, 0x34, 0xD8, 0x1E, 0xDD, 0xFF, 0xF8, 0xFF, 0xDB, 0xFD, 0xDF, 0xFE, 0xFF]
56 ); 56 );
57 57
58 </script> 58 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698