mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
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`.
15 lines
670 B
XML
15 lines
670 B
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<svg fill="#000000" height="800px" width="800px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
viewBox="0 0 473.486 473.486" xml:space="preserve">
|
|
<polygon id="star" points="473.486,182.079 310.615,157.952 235.904,11.23 162.628,158.675 0,184.389 117.584,299.641 91.786,462.257
|
|
237.732,386.042 384.416,460.829 357.032,298.473 "/>
|
|
<script>
|
|
window.addEventListener("load", () => {
|
|
// Note: This test _must_ be in a .svg file!
|
|
internals.hitTest(400, 400);
|
|
// Did not crash!
|
|
internals.signalTextTestIsDone("");
|
|
});
|
|
</script>
|
|
</svg>
|