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

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

Issue 145973021: Implement "replacement" text encoding. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Replacement codec should emit U+FFFD Created 6 years, 9 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 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <script src="resources/shared.js"></script> 3 <script src="resources/shared.js"></script>
4 <script> 4 <script>
5 5
6 description("Test the Encoding API's use of encoding names"); 6 description("Test the Encoding API's use of encoding names");
7 7
8 encodings_table.forEach(function(section) { 8 encodings_table.forEach(function(section) {
9 var list = section.encodings; 9 var list = section.encodings;
10 list.forEach(function(encoding) { 10 list.filter(function(encoding) {
11 return encoding.name !== 'replacement';
12 }).forEach(function(encoding) {
11 debug(""); 13 debug("");
12 evalAndLog("name = " + JSON.stringify(encoding.name)); 14 evalAndLog("name = " + JSON.stringify(encoding.name));
13 encoding.labels.forEach(function(label) { 15 encoding.labels.forEach(function(label) {
14 shouldBeEqualToString("new TextDecoder(" + JSON.stringify(label) + " ).encoding", encoding.name); 16 shouldBeEqualToString("new TextDecoder(" + JSON.stringify(label) + " ).encoding", encoding.name);
15 }); 17 });
16 }); 18 });
17 }); 19 });
18 20
19 </script> 21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698