mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 01:40:46 +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,8 +1,8 @@
|
|||
display-none visible: false
|
||||
display-none visible: false
|
||||
content-visibility-parent visible: true
|
||||
content-visibility-child visible: false
|
||||
opacity-hidden visible: false
|
||||
opacity-visible visible: true
|
||||
visibility-hidden visible: false
|
||||
visibility-visible visible: true
|
||||
content-visibility-auto-hidden visible: true
|
||||
content-visibility-auto-hidden visible: true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
form.length: 12
|
||||
form.length: 12
|
||||
elements.length: 12
|
||||
form[0].name: foo
|
||||
form[1].name: bar
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
== Elements and Names ==
|
||||
== Elements and Names ==
|
||||
formy.length: 12
|
||||
elements.length: 12
|
||||
elements[0] === form.foo
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS (Didn't crash)
|
||||
PASS (Didn't crash)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
HTMLAllCollection
|
||||
HTMLAllCollection
|
||||
typeof document.all = undefined
|
||||
equal to undefined = true
|
||||
equal to null = true
|
||||
|
|
|
@ -1 +1 @@
|
|||
Event: PointerEvent
|
||||
Event: PointerEvent
|
||||
|
|
|
@ -1 +1 @@
|
|||
true
|
||||
true
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
nodeName: CANVAS
|
||||
offsetTop: 0
|
||||
offsetLeft: 0
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
form.action initial value: http://www.example.com/
|
||||
form.action initial value: http://www.example.com/
|
||||
Final segment of form.action after setting to the empty string: HTMLFormElement-action.html
|
||||
Final segment of form.action after setting to "../test.html": test.html
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Cloned checkbox checked: true
|
||||
Cloned checkbox checked: true
|
||||
Cloned text input value: PASS
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS (didn't crash)
|
||||
PASS (didn't crash)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
valueAsNumber getter:
|
||||
valueAsNumber getter:
|
||||
number: 100
|
||||
range: 100
|
||||
hidden: NaN
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Form for #label-no-for is null
|
||||
Form for #label-no-for is null
|
||||
Control for #label-no-for is null: true
|
||||
Form for #parent-of-input2: #form2
|
||||
label.form is the same as label.control.form for #parent-of-input2: true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Option element with no parent select returns null: true
|
||||
Option element with no parent select returns null: true
|
||||
Option element with no parent form returns null: true
|
||||
Option element with no parent select returns null: true
|
||||
Option element within optgroup with no parent select returns null: true
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS (didn't crash)
|
||||
PASS (didn't crash)
|
||||
|
|
|
@ -1 +1 @@
|
|||
B PASS
|
||||
PASS
|
||||
|
|
|
@ -1 +1 @@
|
|||
Option 1 PASS (correct value)
|
||||
PASS (correct value)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Option 1 PASS (correct value)
|
||||
PASS (correct value)
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS (didn't crash)
|
||||
PASS (didn't crash)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Cloned textarea value: PASS
|
||||
Cloned textarea value: PASS
|
||||
|
|
|
@ -4,4 +4,4 @@ kind value after setting to "captions": 'captions'
|
|||
kind value after setting to null: 'metadata'
|
||||
kind value after setting to "CHAPTERS": 'chapters'
|
||||
kind value after setting to "": 'metadata'
|
||||
kind value after calling removeAttribute: 'subtitles'
|
||||
kind value after calling removeAttribute: 'subtitles'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Select files...4 files selected. input1:
|
||||
input1:
|
||||
file1: text/plain: Contents for file1
|
||||
file2: text/plain: Contents for file2
|
||||
file3: text/plain: Contents for file3
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
window.find(): false
|
||||
window.find(): false
|
||||
window.find("this"): true, selection from: 0 to 4
|
||||
window.find("this"): false
|
||||
window.find("A"): true, selection from: 8 to 9
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS (didn't crash)
|
||||
PASS (didn't crash)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
george true
|
||||
true
|
||||
true
|
||||
true
|
||||
true
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
true
|
||||
true
|
||||
true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
window.opener initial value: null
|
||||
window.opener initial value: null
|
||||
window.opener after setting to "test": test
|
||||
iframe contentWindow.opener initial value is the current window object: true
|
||||
iframe contentWindow.opener after setting to null: null
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
originError instanceof DOMException: true
|
||||
originError instanceof DOMException: true
|
||||
originError.name: SyntaxError
|
||||
originError.message: Invalid URL for targetOrigin: 'aaaa'
|
||||
originError.constructor === window.DOMException: true
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
|
||||
|
||||
|
||||
PASS (didn't crash)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
http:
|
||||
http:
|
||||
https:
|
||||
|
|
|
@ -1 +1 @@
|
|||
/foo%C2%91%91
|
||||
/foo%C2%91%91
|
||||
|
|
|
@ -1 +1 @@
|
|||
Label Text input focused
|
||||
Text input focused
|
||||
|
|
|
@ -1 +1 @@
|
|||
Label Checkbox changed
|
||||
Checkbox changed
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS (didn't crash)
|
||||
PASS (didn't crash)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Entered TestElement constructor, throwing.
|
||||
Entered TestElement constructor, throwing.
|
||||
PASS! (Didn't crash)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Slot directionality: ltr
|
||||
Slot directionality: ltr
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS
|
||||
PASS
|
|
@ -1,4 +1,4 @@
|
|||
Simple drag and drop:
|
||||
Simple drag and drop:
|
||||
dragenter
|
||||
types: Files
|
||||
dragover
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
enctype | application/x-www-form-urlencoded
|
||||
enctype | application/x-www-form-urlencoded
|
||||
encoding | application/x-www-form-urlencoded
|
||||
|
||||
enctype | text/plain
|
||||
|
|
|
@ -1 +1 @@
|
|||
10,20
|
||||
10,20
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
wfh :^) PASS wfh :^) PASS wfh :^) FAIL PASS FAIL wfh :^) FAIL FAIL PASS PASS wfh :^) wfh :^) PASS PASSwfh :^) FAIL wfh :^) FAIL wfh :^) wfh :^) FAIL wfh :^) wfh :^) defaultButton: click button=PASS
|
||||
defaultButton: click button=PASS
|
||||
defaultButton: submit
|
||||
defaultButton: handledEvent=true
|
||||
defaultButtonAsInput: click button=PASS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
button.formAction initial value: http://www.example.com/
|
||||
button.formAction initial value: http://www.example.com/
|
||||
Final segment of button.formAction after setting to the empty string: formAction-attribute.html
|
||||
Final segment of button.formAction after setting to "../test.html": test.html
|
||||
input.formAction initial value: http://www.example.com/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
|
||||
<ol reversed="" xml:myattribute=""></ol>
|
||||
<ol xmlns:somename=""></ol>
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
|
|
|
@ -1 +1 @@
|
|||
OK
|
||||
OK
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
1
|
||||
1
|
||||
2
|
||||
4
|
||||
5
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
user%20name
|
||||
user%20name
|
||||
pa%40ss%3Aword
|
||||
|
|
|
@ -1 +1 @@
|
|||
Image height: 17895700
|
||||
Image height: 17895700
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
hello students outerHTML: <div id="foo"><b>hello students</b></div>
|
||||
outerHTML: <div id="foo"><b>hello students</b></div>
|
||||
innerHTML: <b>hello students</b>
|
||||
|
|
|
@ -1 +1 @@
|
|||
<details><summary></summary></details>
|
||||
<details><summary></summary></details>
|
||||
|
|
|
@ -1 +1 @@
|
|||
<input>
|
||||
<input>
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS (Didn't crash)
|
||||
PASS (Didn't crash)
|
||||
|
|
|
@ -1 +1 @@
|
|||
<textarea></textarea>
|
||||
<textarea></textarea>
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS
|
||||
PASS
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
Changed box.
|
||||
oldBox='<p>A box.</p>'
|
||||
newBox='<p>Changed box.</p>'
|
||||
NoModificationAllowedError: Cannot set outer HTML on document
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS (didn't crash)
|
||||
PASS (didn't crash)
|
||||
|
|
|
@ -1 +1 @@
|
|||
PASS! Did not click
|
||||
PASS! Did not click
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
2
|
||||
2
|
||||
[object HTMLTableRowElement]
|
||||
[object HTMLTableRowElement]
|
||||
PASS (didn't crash)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue