mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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 +1 @@
|
|||
true
|
||||
true
|
||||
|
|
|
@ -1 +1 @@
|
|||
Run Clicked!
|
||||
Clicked!
|
||||
|
|
|
@ -1 +1 @@
|
|||
Button Clicked!
|
||||
Clicked!
|
||||
|
|
|
@ -1 +1 @@
|
|||
<HTML >
|
||||
<HTML >
|
||||
|
|
|
@ -1 +1 @@
|
|||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse accumsan semper massa ut pharetra. Nunc vitae lorem at odio facilisis vehicula nec ut nibh. Duis ornare nibh orci, nec mollis est mollis ac. Aenean ultricies condimentum interdum. In eu elit vestibulum, sollicitudin lectus vel, congue nibh. Morbi vitae nunc in tortor ultrices aliquet sit amet a turpis. Phasellus ut dui sodales, dictum sem ut, efficitur tellus. Etiam eu orci et magna suscipit dignissim nec et sem. Aenean quam erat, euismod eu faucibus et, placerat ut dolor. <HTML >
|
||||
<HTML >
|
||||
|
|
|
@ -1 +1 @@
|
|||
true
|
||||
true
|
||||
|
|
|
@ -1 +1 @@
|
|||
true
|
||||
true
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
(no body)
|
|
@ -1 +1 @@
|
|||
hello true
|
||||
true
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
lang "en" <SPAN id="name" >
|
||||
<SPAN id="name" >
|
||||
<SPAN id="value" >
|
||||
|
|
|
@ -1 +1 @@
|
|||
here be bugsyou can't see me toggle open
|
||||
toggle open
|
||||
|
|
|
@ -1 +1 @@
|
|||
<DIV id="box" >
|
||||
<DIV id="box" >
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 Line 9 Line 10 Line 11 Line 12 Line 13 Line 14 Line 15 Line 16 Line 17 Line 18 Line 19 Line 20 <P id="line-6" >
|
||||
<P id="line-6" >
|
||||
<SPAN id="line-8" >
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
1 2 <DIV id="aa" >
|
||||
<DIV id="aa" >
|
||||
<DIV id="a" >
|
||||
<DIV id="bb" >
|
||||
<DIV id="b" >
|
||||
|
|
|
@ -1 +1 @@
|
|||
Establishes a stacking context. <DIV id="scroll-space-filler" >
|
||||
<DIV id="scroll-space-filler" >
|
||||
|
|
|
@ -1 +1 @@
|
|||
<rect> clicked
|
||||
<rect> clicked
|
||||
|
|
|
@ -1 +1 @@
|
|||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque eu ante est. Integer ipsum sem, tincidunt quis felis quis, efficitur fringilla neque. Aliquam erat volutpat. Donec feugiat euismod sapien. Donec vel egestas arcu. Suspendisse luctus rhoncus mi quis elementum. Maecenas vel nisi maximus, viverra tellus quis, ultrices elit. Quisque congue velit quis lectus congue, ut consectetur nulla pharetra. Nullam euismod leo eget magna auctor, et bibendum urna tincidunt. Morbi molestie gravida ex ac consectetur. Duis pretium gravida augue eu sagittis. 192
|
||||
192
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue