ladybird/Tests
Shannon Booth f991e40d7f LibWeb: Support [Reflect] on IDL String attributes that may return null
This change allows IDL interfaces to be compiled using new AK String
which have a attribute in the interface that may return null.

Without this change we would run into a compile error from code such as
the following example:

```
auto retval = impl->deprecated_attribute(HTML::AttributeNames::ref);

if (!retval.has_value()) {
    return JS::js_null();
 }
 return JS::PrimitiveString::create(vm, retval.release_value());
```

As `deprecated_attribute` returns a `DeprecatedString` instead of an
`Optional<String>`. Fix that by using the non-deprecated attribute
implementation, and falling back to the empty string for where we cannot
return null.

Also add a test here to cover a regression I almost introduced here
which was not previously covered by our test suite.

Ideally, all of this should actually just be calling
Element::get_attribute_value, but I'm not entirely sure at this stage
what the behavioral change would be to test for here. Since this
implementation preserves the previous behavior, stick with it, and add a
FIXME for now.
2023-09-05 20:36:09 -04:00
..
AK AK: Add binary and octal mode formatting for FixedPoint 2023-08-29 11:10:45 +02:00
Kernel Userland+Tests: Don't use MAP_FILE when mmap-ing 2023-09-01 19:50:35 +02:00
LibAudio LibAudio: Add a Serenity implementation of PlaybackStream 2023-08-29 11:31:10 +02:00
LibC Userland+Tests: Don't use MAP_FILE when mmap-ing 2023-09-01 19:50:35 +02:00
LibCompress LibCompress: Let BrotliDecompressionStream take a MaybeOwned 2023-08-23 12:03:37 +01:00
LibCore LibCore: Check if a promise is already resolved in Promise::map() 2023-08-31 11:10:09 +02:00
LibCpp
LibCrypto
LibEDID AK: Rename AK::FixedPoint::round to rint and fix a rounding error 2023-08-14 14:20:45 -06:00
LibELF Tests/LibELF: Test loading libraries with dynamic TLS 2023-08-18 16:20:13 +02:00
LibGfx Meta+Tests: Add a fuzzer and a test for the ILBM decoder 2023-08-15 18:36:11 +01:00
LibGL
LibGLSL LibGLSL: Add tests for GLSL parser 2023-08-18 15:29:48 +02:00
LibIMAP LibIMAP+Mail: Implement RFC2047 message header encoding 2023-08-12 11:45:52 -06:00
LibJS Kernel+Userland: Remove the {get,set}_thread_name syscalls 2023-08-25 11:51:52 +02:00
LibLocale LibLocale+LibJS+ClockSettings: Make date time format APIs infallible 2023-08-23 05:29:21 +02:00
LibMarkdown
LibPDF
LibRegex LibRegex: Treat backwards jumps to IP 0 as normal backwards jumps too 2023-08-16 22:20:24 +03:30
LibSQL LibSQL: Remove Core::EventReceiver parent from SQL::Relation 2023-08-07 14:38:38 -04:00
LibTest
LibTextCodec
LibThreading
LibTimeZone
LibTLS
LibTTF
LibUnicode LibUnicode: Generate data for bidirectional character types 2023-08-20 16:21:35 -04:00
LibVideo
LibWasm Meta: Generate bigint values for v128 constants in Wasm tests 2023-08-21 13:39:32 +03:30
LibWeb LibWeb: Support [Reflect] on IDL String attributes that may return null 2023-09-05 20:36:09 -04:00
LibXML
Spreadsheet test-js: Remove ability to run with AST interpreter 2023-08-08 13:07:13 +02:00
UserspaceEmulator
Utilities
CMakeLists.txt LibGLSL: Add tests for GLSL parser 2023-08-18 15:29:48 +02:00