1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:18:12 +00:00
serenity/Tests/LibWeb/Text/input
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
..
canvas LibWeb: Null check fonts after parsing them in CRC2D.font assignment 2023-08-17 10:07:38 +02:00
css LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
geometry LibWeb: Add DOMMatrix flipX and flipY 2023-09-05 20:30:36 +02:00
hit_testing LibWeb: Treat grid item as it creates stacking context during painting 2023-08-22 11:33:24 +02:00
HTML LibWeb: Add {de}serialization steps for TypedArrayBuffers and DataViews 2023-09-13 08:49:09 +02:00
PerformanceObserver LibWeb: Implement PerformanceObserver 2023-08-27 23:27:44 +02:00
Streams Tests/LibWeb: Verify setting {readable,writable}Type throws RangeError 2023-07-15 11:59:39 +02:00
TextDecoder LibWeb: Make 'optional BufferSource' IDL arguments actually optional 2023-05-30 12:50:13 +02:00
URL AK: Percent encode URL fragments when parsed 2023-08-31 11:02:18 +02:00
append-child-must-update-layout-tree.html LibWeb: Invalidate the layout tree on DOM node insertion 2023-06-06 09:06:27 +02:00
Attr-cloneNode.html LibWeb/Tests: Port two DOM cloneNode() test cases to text tests 2023-08-21 13:51:12 +02:00
background-position-xy.html LibWeb: Create EdgeStyleValue for BackgroundPositionXY with no offset 2023-07-17 14:53:52 +01:00
basic.html Tests/LibWeb: Use the include.js helper in "basic.html" 2023-05-28 22:03:57 +02:00
body-background-color-red.css LibWeb: Forward media attribute from link element to loaded style sheet 2023-06-11 06:05:03 +02:00
failed-img-should-not-delay-load-event-forever.html LibWeb: Fire the fail callback on SharedImageRequest when they fail 2023-08-28 10:19:46 +02:00
html-form-controls-collection.html LibWeb: Return a HTMLFormControlsCollection from HTMLFormElement element 2023-08-20 11:04:03 +02:00
html-parser-text-in-table-hoisting.html LibWeb: Make HTML parser flush all pending tokens in "in table text" 2023-07-03 11:50:58 +02:00
idl-handling-of-null-attribute.html LibWeb: Support [Reflect] on IDL String attributes that may return null 2023-09-05 20:36:09 -04:00
include.js LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
input-element-file-value.html LibWeb: Fix empty value attribute for 'file' input returning fakepath 2023-08-26 13:51:18 +02:00
internals.html LibWeb: Add a simple internals objects only available during testing 2023-08-06 15:26:34 +02:00
link-element-media-attribute.html LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
link-element-onload-attribute.html LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
link-element-rel-preload-load-event.html LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
link-element-search.html LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
ProcessingInstruction-cloneNode.html LibWeb/Tests: Port two DOM cloneNode() test cases to text tests 2023-08-21 13:51:12 +02:00
radio-node-list.html LibWeb: Implement value attribute of RadioNodeList 2023-08-26 13:51:18 +02:00
sameobject-behavior-for-htmlcollection-properties.html LibWeb/Tests: Port HTMLCollection [[SameObject]] test to a text test 2023-08-21 13:51:12 +02:00
scripted-dom-insertion-during-html-parse.html LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
setting-display-none-should-nuke-subtree.html LibWeb: Detach stale layout nodes from DOM during layout tree build 2023-08-01 09:19:41 +02:00
title.html LibWeb: Implement the document title attribute closer to the spec 2023-06-08 07:21:08 +02:00
url-search-params-iterator-iterator.html LibWeb: Don't override prototype on generated iterator prototypes 2023-06-08 10:05:56 +02:00
valid.css LibWeb: Fire "load" and "error" events for rel=preload link loads 2023-06-06 09:06:27 +02:00
window-proxy-numeric-own-property.html LibWeb: Implement basic support for window[number] 2023-07-25 15:45:44 +02:00
window-proxy-property-inline-cache.html LibWeb: Don't cache property accesses on WindowProxy 2023-07-11 00:14:50 +02:00