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:
Timothy Flynn 2024-10-02 12:38:10 -04:00 committed by Tim Flynn
commit bf668696de
Notes: github-actions[bot] 2024-10-03 11:08:22 +00:00
319 changed files with 333 additions and 333 deletions

View file

@ -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)

View file

@ -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

View file

@ -1 +1 @@
PASS! (Didn't crash)
PASS! (Didn't crash)

View file

@ -1 +1 @@
PASS! (Didn't crash)
PASS! (Didn't crash)

View file

@ -1,2 +1,2 @@
before: rule1
before: rule1
after: rule2

View file

@ -1 +1 @@
rgb(30, 31, 34)
rgb(30, 31, 34)

View file

@ -1,4 +1,4 @@
Before testing: none
Before testing: none
badger: badger
none: none
BANANA: BANANA

View file

@ -1,4 +1,4 @@
1px
1px
2px
3px
4px

View file

@ -1 +1 @@
PASS (didn't crash)
PASS (didn't crash)

View file

@ -1,4 +1,4 @@
hi #foo:
#foo:
color: rgb(128, 128, 128)
background-color: rgb(255, 255, 0)
#foo::before:

View file

@ -1,2 +1,2 @@
height: 4px
height: 4px
width: 5px

View file

@ -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)

View file

@ -1,4 +1,4 @@
0
0
1
1
1

View file

@ -1 +1 @@
PASS! (didn't crash)
PASS! (didn't crash)

View file

@ -1 +1 @@
PASS, revert skipped the layers
PASS, revert skipped the layers

View file

@ -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)

View file

@ -1 +1 @@
PASS! (Didn't crash)
PASS! (Didn't crash)

View file

@ -1,2 +1,2 @@
TRANSFORMED TEXT
TRANSFORMED TEXT
transformed text

View file

@ -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

View file

@ -1 +1 @@
.d-none, .oops::-webkit-asdf
.d-none, .oops::-webkit-asdf

View file

@ -1,3 +1,3 @@
Hi Not hovering: 16
Not hovering: 16
Hovering: 78
Not hovering: 16