mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 18:37:37 +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`.
(cherry picked from commit bf668696de9a68bbcd6adfeaac809a475da015dc;
amended a bit but not as much as one might think -- see PR for details)
20 lines
1.0 KiB
Plaintext
20 lines
1.0 KiB
Plaintext
text-input selectionStart: 0 selectionEnd: 0 selectionDirection: none
|
|
date-input selectionStart: null selectionEnd: null selectionDirection: null
|
|
textarea selectionStart: 0 selectionEnd: 0 selectionDirection: none
|
|
text-input selectionStart: 18 selectionEnd: 18 selectionDirection: none
|
|
date input setting selectionStart error: InvalidStateError: setSelectionStart does not apply to this input type
|
|
select event fired: 0 18
|
|
text-input selectionStart: 0 selectionEnd: 18 selectionDirection: none
|
|
select event fired: 2 4
|
|
text-input selectionStart: 2 selectionEnd: 4 selectionDirection: forward
|
|
select event fired: 1 4
|
|
text-input selectionStart: 1 selectionEnd: 4 selectionDirection: forward
|
|
select event fired: 1 5
|
|
text-input selectionStart: 1 selectionEnd: 5 selectionDirection: forward
|
|
select event fired: 6 6
|
|
text-input selectionStart: 6 selectionEnd: 6 selectionDirection: forward
|
|
select event fired: 6 6
|
|
text-input selectionStart: 6 selectionEnd: 6 selectionDirection: backward
|
|
select event fired: 6 6
|
|
textarea selectionStart: 0 selectionEnd: 9 selectionDirection: none
|