haikuwebkit/LayoutTests/fast/encoding/legacy-utf-32-aliases-expec...

23 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

Remove support for UTF-32 variant text encodings https://bugs.webkit.org/show_bug.cgi?id=179435 Reviewed by Darin Adler. LayoutTests/imported/w3c: * web-platform-tests/encoding/unsupported-encodings-expected.txt: Update results now that UTF-32 support is gone. Still not quite right since we don't sniff UTF-32LE as UTF-16LE yet. * web-platform-tests/encoding/utf-32-expected.txt: ditto Source/WebCore: Non-support for these encodings is covered by WPT tests. * platform/text/TextCodecICU.cpp: Remove UTF-32 variants. Technically, we should also ensure that UTF-32LE with a BOM gets sniffed as UTF-16LE instead of windows-1252. Chrome does this but Firefox doesn't yet. WPT tests cover it, and we can fix it later. LayoutTests: * fast/encoding/legacy-utf-32-aliases.html: Added. Check that we don't support our legacy aliases for utf-32, since WPT doesn't either. * fast/encoding/legacy-utf-32-aliases-expected.txt: Ditto. Remove the following tests; we no longer want to support UTF-32. imported/w3c/web-platform-tests/encoding already has tests for lack of support. * fast/encoding/utf-32-big-endian-bom-expected.txt: Removed. * fast/encoding/utf-32-big-endian-bom.html: Removed. * fast/encoding/utf-32-big-endian-nobom-expected.txt: Removed. * fast/encoding/utf-32-big-endian-nobom.xml: Removed. * fast/encoding/utf-32-little-endian-bom-expected.txt: Removed. * fast/encoding/utf-32-little-endian-bom.html: Removed. * fast/encoding/utf-32-little-endian-nobom-expected.txt: Removed. * fast/encoding/utf-32-little-endian-nobom.xml: Removed. * http/tests/misc/submit-get-in-utf32be-expected.txt: Removed. * http/tests/misc/submit-get-in-utf32be.html: Removed. * http/tests/misc/submit-get-in-utf32le-expected.txt: Removed. * http/tests/misc/submit-get-in-utf32le.html: Removed. * http/tests/misc/submit-post-in-utf32be-expected.txt: Removed. * http/tests/misc/submit-post-in-utf32be.html: Removed. * http/tests/misc/submit-post-in-utf32le-expected.txt: Removed. * http/tests/misc/submit-post-in-utf32le.html: Removed. * http/tests/misc/url-in-utf32be-expected.txt: Removed. * http/tests/misc/url-in-utf32be.html: Removed. * http/tests/misc/url-in-utf32le-expected.txt: Removed. * http/tests/misc/url-in-utf32le.html: Removed. Canonical link: https://commits.webkit.org/195634@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-11-13 07:54:55 +00:00
This test verifies that certain aliases for UTF-32 are not supported.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
The following encodings should not be supported
PASS new TextDecoder("ISO-10646-UCS-4").encoding threw exception RangeError: Bad value.
PASS new TextDecoder("ibm-1236").encoding threw exception RangeError: Bad value.
PASS new TextDecoder("ibm-1237").encoding threw exception RangeError: Bad value.
PASS new TextDecoder("csUCS4").encoding threw exception RangeError: Bad value.
PASS new TextDecoder("ucs-4").encoding threw exception RangeError: Bad value.
PASS new TextDecoder("UTF32_LittleEndian").encoding threw exception RangeError: Bad value.
PASS new TextDecoder("ibm-1234").encoding threw exception RangeError: Bad value.
PASS new TextDecoder("ibm-1235").encoding threw exception RangeError: Bad value.
PASS new TextDecoder("UTF32_BigEndian").encoding threw exception RangeError: Bad value.
PASS new TextDecoder("ibm-1232").encoding threw exception RangeError: Bad value.
PASS new TextDecoder("ibm-1233").encoding threw exception RangeError: Bad value.
PASS new TextDecoder("ibm-9424").encoding threw exception RangeError: Bad value.
PASS successfullyParsed is true
TEST COMPLETE