| Index: LayoutTests/fast/encoding/api/legacy-encode.html
|
| diff --git a/LayoutTests/fast/encoding/api/legacy-encode.html b/LayoutTests/fast/encoding/api/legacy-encode.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..335b3a3055f99ff8dbbd59bba0584db761e5abb7
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/encoding/api/legacy-encode.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../js/resources/js-test-pre.js"></script>
|
| +<script src="resources/shared.js"></script>
|
| +<script>
|
| +
|
| +description("Non-UTF encodings supported only for decode, not encode");
|
| +
|
| +utf_encodings.forEach(function(encoding) {
|
| + shouldBeEqualToString("new TextDecoder('"+encoding+"').encoding", encoding);
|
| + shouldBeEqualToString("new TextEncoder('"+encoding+"').encoding", encoding);
|
| +});
|
| +
|
| +legacy_encodings.forEach(function(encoding) {
|
| + shouldBeEqualToString("new TextDecoder('"+encoding+"').encoding", encoding);
|
| + shouldThrow("new TextEncoder('"+encoding+"').encoding");
|
| +});
|
| +
|
| +</script>
|
| +<script src="../../js/resources/js-test-post.js"></script>
|
|
|