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 +1 @@
Bounding box of empty SVG element - x: 0, y: 0, width: 0, height: 0
Bounding box of empty SVG element - x: 0, y: 0, width: 0, height: 0

View file

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

View file

@ -1 +1 @@
svg.className = 'demo class'
svg.className = 'demo class'

View file

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

View file

@ -1,4 +1,4 @@
---------------
---------------
explicit-xlink-href
---------------
localName -> href

View file

@ -1,4 +1,4 @@
---------------
---------------
use - no-xlink-href
---------------
element.href instanceof SVGAnimatedString -> true

View file

@ -1,3 +1,3 @@
svg.ownerSVGElement = 'null'
svg.ownerSVGElement = 'null'
linearGradient.ownerSVGElement = '[object SVGSVGElement]'
linearGradient.ownerSVGElement == svg = 'true'

View file

@ -1 +1 @@
Hello from SVGScriptElement!
Hello from SVGScriptElement!

View file

@ -1,4 +1,4 @@
[object SVGSVGElement]
[object SVGSVGElement]
[object SVGAnimatedRect]
null
null

View file

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