Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions encoding/api-invalid-label.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
var tests = ["invalid-invalidLabel"];
setup(function() {
encodings_table.forEach(function(section) {
section.encodings.filter(function(encoding) {
return encoding.name !== 'replacement';
}).forEach(function(encoding) {
section.encodings.forEach(function(encoding) {
encoding.labels.forEach(function(label) {
["\u0000", "\u000b", "\u00a0", "\u2028", "\u2029"].forEach(function(ws) {
tests.push(ws + label);
Expand Down
4 changes: 0 additions & 4 deletions encoding/api-replacement-encodings.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
<script src="resources/encodings.js"></script>
<script>

test(function() {
assert_throws(new RangeError(), function() { new TextDecoder('replacement'); });
}, 'The "replacement" label should not be a known encoding.');

encodings_table.forEach(function(section) {
section.encodings.filter(function(encoding) {
return encoding.name === 'replacement';
Expand Down
3 changes: 2 additions & 1 deletion encoding/resources/encodings.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ var encodings_table =
"hz-gb-2312",
"iso-2022-cn",
"iso-2022-cn-ext",
"iso-2022-kr"
"iso-2022-kr",
"replacement"
],
"name": "replacement"
},
Expand Down