ladybird/Userland
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
..
Applets Userland: Migrate to String in notification system 2023-09-01 12:06:08 +02:00
Applications Userland: Don't use String::from_utf8() for literal strings 2023-09-15 08:44:52 +02:00
BuggieBox Userland: Pretty print the help text in BuggieBox 2023-08-09 02:10:02 +02:00
Demos Mandelbrot: Pledge unix to enable image export 2023-08-17 07:14:54 +02:00
DevTools Kernel+ProfileViewer: Display additional filesystem events 2023-09-09 11:26:51 -06:00
DynamicLoader LibC+LibELF: Support loading shared libraries compiled with dynamic TLS 2023-08-18 16:20:13 +02:00
Games GameOfLife: Ensure BoardWidget can always contain the board 2023-09-13 07:45:49 +01:00
Libraries LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
Services LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
Shell Shell: Allow the user to set the prompt using PROMPT() 2023-09-07 11:52:37 -06:00
Utilities LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
CMakeLists.txt Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00