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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-labels.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: Encoding labels</title> 2 <title>Encoding API: Encoding labels</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/encodings.js"></script> 5 <script src="resources/encodings.js"></script>
6 <script> 6 <script>
7 var tests = []; 7 var tests = [];
8 setup(function() { 8 setup(function() {
9 var whitespace = [' ', '\t', '\n', '\f', '\r']; 9 var whitespace = [' ', '\t', '\n', '\f', '\r'];
10 encodings_table.forEach(function(section) { 10 encodings_table.forEach(function(section) {
(...skipping 16 matching lines...) Expand all
27 tests.forEach(function(t) { 27 tests.forEach(function(t) {
28 var input = t[0], output = t[1]; 28 var input = t[0], output = t[1];
29 test(function() { 29 test(function() {
30 assert_equals(new TextDecoder(input).encoding, output, 30 assert_equals(new TextDecoder(input).encoding, output,
31 'label for encoding should match'); 31 'label for encoding should match');
32 assert_equals(new TextDecoder(input.toUpperCase()).encoding, output, 32 assert_equals(new TextDecoder(input.toUpperCase()).encoding, output,
33 'label matching should be case-insensitive'); 33 'label matching should be case-insensitive');
34 }, format_value(input) + " => " + format_value(output)); 34 }, format_value(input) + " => " + format_value(output));
35 }); 35 });
36 </script> 36 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698