1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-09 21:37:34 +00:00
serenity/Tests/LibWeb/Text/input/css
Aliaksandr Kalenik 6f8be44c0e LibWeb+WebContent+headless-browser: Support async text tests
Previously, we used `on_load_finish` to determine when the text test
was completed. This method did not allow testing of async functions
because there was no way to indicate that the runner should wait for
the async call to end.

This change introduces a function in the `internals` object that is
intended to be called when the text test execution is completed. The
text test runner will now ignore `on_load_finish` which means a test
will timeout if this new function is never called.

`test(f)` function in `include.js` has been modified to automatically
terminate a test once `load` event is fired on `window`.
new `asyncTest(f)` function has been introduces. `f` receives function
that will terminate a test as a first argument.

Every test is expected to call either `test()` or `asyncTest()` to
complete. If not, it will remain hanging until a timeout occurs.
2023-09-15 08:52:25 +02:00
..
box-shadow-resolves-length-functions.html LibWeb: Support calc(...) in box-shadow's values of type Length 2023-06-25 10:27:08 +01:00
element-opacity-change-invalidation.html LibWeb: Don't assume opacity values are CSS numbers 2023-07-31 09:16:18 +02:00
font-face-src-local-serialization.html LibWeb: Parse src: local(...) in CSS @font-face rules 2023-08-25 11:51:28 +02:00
font-family-with-dash-prefix.html LibWeb: Allow font-family names to start with - 2023-07-06 14:30:06 +02:00
getComputedStyle-display-short-serialization.html LibWeb: Make resolved serialization of CSS display prefer short form 2023-05-27 16:43:35 +02:00
legacy-color-value.html Tests/LibWeb: Add some text tests for 'parsing a legacy color value' 2023-06-05 06:54:33 +02:00
math-depth.html LibWeb: Implement the math-depth CSS property 2023-09-11 17:03:22 +01:00
media-query-serialization-basic.html LibWeb: Fix broken conversion of CSS <resolution> dpi/dpcm to dppx 2023-08-25 20:10:47 +02:00
PropertyOwningCSSStyleDeclaration-serialized-custom-properties.html LibWeb: Serialize custom properties in CSSStyleDeclaration::serialized() 2023-06-09 11:17:44 +01:00
string-serializes-with-quotes.html LibWeb: Serialize StringStyleValue with quotes 2023-09-12 14:29:21 +01:00
style-sheet-with-byte-order-mark.css LibWeb: Decode linked style sheets before parsing them 2023-07-04 10:45:20 +02:00
style-sheet-with-byte-order-mark.html LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00