mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 05:52:19 +00:00
LibWeb+WebContent: Do not include DOM HTML in text test expectations
For example, in the following abbreviated test HTML: <span>some text</span> <script>println("whf")</script> We would have to craft the expectation file to include the "some text" segment, usually with some leading whitespace. This is a bit annoying, and makes it difficult to manually craft expectation files. So instead of comparing the expectation against the entire DOM inner text, we now send the inner text of just the <pre> element containing the test output when we invoke `internals.signalTextTestIsDone`.
This commit is contained in:
parent
f3f7f77dbc
commit
bf668696de
Notes:
github-actions[bot]
2024-10-03 11:08:22 +00:00
Author: https://github.com/trflynn89
Commit: bf668696de
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1603
Reviewed-by: https://github.com/awesomekling ✅
Reviewed-by: https://github.com/circl-lastname
Reviewed-by: https://github.com/kalenikaliaksandr ✅
319 changed files with 333 additions and 333 deletions
|
@ -1,4 +1,4 @@
|
|||
Animation with no timeline has null currentTime: true
|
||||
Animation with no timeline has null currentTime: true
|
||||
Animation that hasn't been played has null currentTime: true
|
||||
Played animation has a currentTime of 0: true
|
||||
Animation time after 100ms is correct
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Element.animate creates Animation with effect: true
|
||||
Element.animate creates Animation with effect: true
|
||||
Setting effect to null clears the effect: true
|
||||
Accessing effect property on animation with no effect produces null: true
|
||||
Setting effect on animation with no effect works: true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
finished promise remains after finishing: true
|
||||
finished promise remains after finishing: true
|
||||
finished promise updates after playing: true
|
||||
cancel() updates finished promise: true
|
||||
Expected finished promise cancellation
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Animation is pending after a call to play(): true
|
||||
Animation is pending after a call to play(): true
|
||||
Animation is not pending after ready promise resolves: true
|
||||
Animation is pending after a call to pause(): true
|
||||
Animation is not pending after ready promise resolves: true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Animation's playState is idle after cancel(): true
|
||||
Animation's playState is idle after cancel(): true
|
||||
Animation's playState is idle immediately after play(): true
|
||||
Animation's playState is paused after pause(): true
|
||||
Animation's playState is finished after finish(): true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Animation has expected currentTime value after 100ms
|
||||
Animation has expected currentTime value after 100ms
|
||||
Animation has expected currentTime value after 200ms
|
||||
Animation has expected currentTime value after 300ms
|
||||
Animation has expected currentTime value after 400ms
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Animation's replaceState is active initially: true
|
||||
Animation's replaceState is active initially: true
|
||||
Animation's replaceState is active after finishing: true
|
||||
Animation's replaceState is not removed after creating new animation: true
|
||||
Animation's replaceState is removed after new animation finishes: true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Animation's startTime is initially null: true
|
||||
Animation's startTime is initially null: true
|
||||
Animation's startTime is 100 after setting the value: true
|
||||
Animation's startTime is non-null after ready promise resolved: true
|
||||
Animation's startTime is null after calling cancel(): true
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Animation's default timeline is the document's timeline: true
|
||||
Animation's default timeline is the document's timeline: true
|
||||
Animation created with null timeline has no timeline: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue