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

Side by Side Diff: LayoutTests/fast/encoding/api/ascii-supersets.html

Issue 1196733003: Remove duplicate Encoding API tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/encoding/api/basics.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Encoding API: ASCII supersets</title> 2 <title>Encoding API: ASCII supersets</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 src="resources/shared.js"></script> 5 <script src="resources/encodings.js"></script>
6 <script> 6 <script>
7 7
8 // Encodings that have escape codes in 0x00-0x7F 8 // Encodings that have escape codes in 0x00-0x7F
9 var escape_codes = { 9 var escape_codes = {
10 'iso-2022-jp': [ 0x1B ] 10 'iso-2022-jp': [ 0x1B ]
11 }; 11 };
12 12
13 encodings_table.forEach(function(section) { 13 encodings_table.forEach(function(section) {
14 section.encodings.filter(function(encoding) { 14 section.encodings.filter(function(encoding) {
15 return encoding.name !== 'replacement'; 15 return encoding.name !== 'replacement';
(...skipping 12 matching lines...) Expand all
28 } 28 }
29 29
30 var decoder = new TextDecoder(encoding.name); 30 var decoder = new TextDecoder(encoding.name);
31 var decoded = decoder.decode(new Uint8Array(bytes)); 31 var decoded = decoder.decode(new Uint8Array(bytes));
32 assert_equals(decoded, string); 32 assert_equals(decoded, string);
33 }, 'ASCII superset encoding: ' + encoding.name); 33 }, 'ASCII superset encoding: ' + encoding.name);
34 }); 34 });
35 }); 35 });
36 36
37 </script> 37 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/encoding/api/basics.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698