ladybird/Tests
DexesTTP e01f1c949f AK: Do not VERIFY on invalid code point bytes in UTF8View
The previous behavior was to always VERIFY that the UTF-8 bytes were
valid when iterating over the code points of an UTF8View. This change
makes it so we instead output the 0xFFFD 'REPLACEMENT CHARACTER'
code point when encountering invalid bytes, and keep iterating the
view after skipping one byte.

Leaving the decision to the consumer would break symmetry with the
UTF32View API, which would in turn require heavy refactoring and/or
code duplication in generic code such as the one found in
Gfx::Painter and the Shell.

To make it easier for the consumers to detect the original bytes, we
provide a new method on the iterator that returns a Span over the
data that has been decoded. This method is immediately used in the
TextNode::compute_text_for_rendering method, which previously did
this in a ad-hoc waay.

This also add tests for the new behavior in TestUtf8.cpp, as well
as reinforcements to the existing tests to check if the underlying
bytes match up with their expected values.
2021-06-03 18:28:27 +04:30
..
AK AK: Do not VERIFY on invalid code point bytes in UTF8View 2021-06-03 18:28:27 +04:30
Kernel Kernel: Ensure that an unveil node with no permission is never accepted 2021-05-29 22:05:34 +02:00
LibC LibC: Implement strerror_r() 2021-05-25 17:36:02 +02:00
LibCompress Tests: Use ByteBuffer::create_zeroed in TestDeflate instead of memset 2021-05-27 15:18:03 +02:00
LibCore Tests: Add InodeWatcher and FileWatcher tests 2021-05-12 22:38:20 +02:00
LibCpp LibCpp: Add regression tests for the parser 2021-05-19 23:19:07 +02:00
LibELF Tests: Add LibELF tests 2021-05-15 11:02:04 +01:00
LibGfx Tests: Remove default font tests from LibGfx/TestFontHandling 2021-05-21 21:02:43 +02:00
LibJS LibTest+test-js: Add back the lost test262 parser test option 2021-05-30 10:34:44 +01:00
LibM Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
LibPthread LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
LibRegex Tests: Free all memory allocated with regcomp in RegexLibC tests 2021-05-14 08:34:00 +01:00
LibSQL LibSQL: Report a syntax error for unsupported LIMIT clause syntax 2021-06-03 08:30:13 +02:00
LibWasm LibWasm: Ensure that value signs are preserved when casting 2021-06-02 16:09:16 +04:30
LibWeb LibWeb: Implement test-web in terms of LibTest/JavaScriptTestRunner 2021-05-18 18:48:15 +01:00
UserspaceEmulator LibC: Move mman.h to sys/mman.h 2021-05-14 22:24:02 +02:00
CMakeLists.txt LibWasm+Meta: Add test-wasm and optionally test the conformance tests 2021-05-21 00:15:23 +01:00