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

Side by Side Diff: LayoutTests/fast/encoding/api/latin-1.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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Encoding API: Latin-1 decoders</title> 2 <title>Encoding API: Latin-1 decoders</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 // Blink uses separate decoder object intances for these encoding aliases, 8 // Blink uses separate decoder object intances for these encoding aliases,
9 // so test that they are behaving identically. 9 // so test that they are behaving identically.
10 10
11 test(function() { 11 test(function() {
12 12
13 var labels; 13 var labels;
14 encodings_table.forEach(function(section) { 14 encodings_table.forEach(function(section) {
15 section.encodings.forEach(function(encoding) { 15 section.encodings.forEach(function(encoding) {
(...skipping 11 matching lines...) Expand all
27 var windows1252 = new TextDecoder('windows-1252'); 27 var windows1252 = new TextDecoder('windows-1252');
28 28
29 labels.forEach(function(label) { 29 labels.forEach(function(label) {
30 var decoder = new TextDecoder(label); 30 var decoder = new TextDecoder(label);
31 assert_equals(decoder.decode(array), windows1252.decode(array)); 31 assert_equals(decoder.decode(array), windows1252.decode(array));
32 }); 32 });
33 33
34 }, 'Latin-1 decoders (windows-1252, iso-8859-1, us-ascii, etc) decode identicall y.'); 34 }, 'Latin-1 decoders (windows-1252, iso-8859-1, us-ascii, etc) decode identicall y.');
35 35
36 </script> 36 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/encoding/api/fatal-flag.html ('k') | LayoutTests/fast/encoding/api/legacy-encode.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698