mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +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 @@
|
|||
@media rule conditionText initial value: not all
|
||||
@media rule conditionText initial value: not all
|
||||
@media rule conditionText value after assignment: not all
|
||||
@supports rule conditionText initial value: not (unsupported-property: unsupported-value)
|
||||
@supports rule conditionText value after assignment: not (unsupported-property: unsupported-value)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Testing window.document:
|
||||
Testing window.document:
|
||||
selectorText initial value: .green-background
|
||||
container element backgroundColor initial value: rgb(255, 0, 0)
|
||||
selectorText after setting selectorText value to #container: #container
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS! (Didn't crash)
|
||||
PASS! (Didn't crash)
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS! (Didn't crash)
|
||||
PASS! (Didn't crash)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
before: rule1
|
||||
before: rule1
|
||||
after: rule2
|
||||
|
|
|
@ -1 +1 @@
|
|||
rgb(30, 31, 34)
|
||||
rgb(30, 31, 34)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Before testing: none
|
||||
Before testing: none
|
||||
badger: badger
|
||||
none: none
|
||||
BANANA: BANANA
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
1px
|
||||
1px
|
||||
2px
|
||||
3px
|
||||
4px
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS (didn't crash)
|
||||
PASS (didn't crash)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
hi #foo:
|
||||
#foo:
|
||||
color: rgb(128, 128, 128)
|
||||
background-color: rgb(255, 255, 0)
|
||||
#foo::before:
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
height: 4px
|
||||
height: 4px
|
||||
width: 5px
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
PASS: A1 Anonymous layers (first target)
|
||||
PASS: A1 Anonymous layers (first target)
|
||||
PASS: A1 Anonymous layers (second target)
|
||||
PASS: A2 Anonymous layers (first target)
|
||||
PASS: A2 Anonymous layers (second target)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
0
|
||||
0
|
||||
1
|
||||
1
|
||||
1
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS! (didn't crash)
|
||||
PASS! (didn't crash)
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS, revert skipped the layers
|
||||
PASS, revert skipped the layers
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
PASS: revert to base (first target)
|
||||
PASS: revert to base (first target)
|
||||
PASS: revert to base (second target)
|
||||
PASS: double revert (first target)
|
||||
PASS: double revert (second target)
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS! (Didn't crash)
|
||||
PASS! (Didn't crash)
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS
|
||||
PASS
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
TRANSFORMED TEXT
|
||||
TRANSFORMED TEXT
|
||||
transformed text
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
left starts at: 0px
|
||||
left starts at: 0px
|
||||
shortly after starting, left is >= 0px? true and < 200px? true
|
||||
half-way through, left is > 0px? true and < 200px? true
|
||||
near the end, left is > 0px? true and < 200px? true
|
||||
|
|
|
@ -1 +1 @@
|
|||
.d-none, .oops::-webkit-asdf
|
||||
.d-none, .oops::-webkit-asdf
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Hi Not hovering: 16
|
||||
Not hovering: 16
|
||||
Hovering: 78
|
||||
Not hovering: 16
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue