mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb/Tests: Add a basic set of tests for document.all
This commit is contained in:
committed by
Andreas Kling
parent
249ee0a30e
commit
851114e462
Notes:
sideshowbarker
2024-07-17 14:33:07 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/851114e462 Pull-request: https://github.com/SerenityOS/serenity/pull/23788
33
Tests/LibWeb/Text/expected/HTML/HTMLAllCollection-basic.txt
Normal file
33
Tests/LibWeb/Text/expected/HTML/HTMLAllCollection-basic.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
HTMLAllCollection
|
||||
typeof document.all = undefined
|
||||
equal to undefined = true
|
||||
equal to null = true
|
||||
strictly equal to undefined = false
|
||||
strictly equal to null = false
|
||||
is an html collection = true
|
||||
length = 9
|
||||
out of range (9) = undefined
|
||||
out of range (-1) = undefined
|
||||
item #0 = [object HTMLHtmlElement], id = '', name = 'undefined'
|
||||
item #1 = [object HTMLHeadElement], id = '', name = 'undefined'
|
||||
item #2 = [object HTMLBodyElement], id = '', name = 'undefined'
|
||||
item #3 = [object HTMLFormElement], id = '', name = ''
|
||||
item #4 = [object HTMLInputElement], id = 'formcontrol', name = 'one'
|
||||
item #5 = [object HTMLInputElement], id = 'formcontrol', name = 'two'
|
||||
item #6 = [object HTMLScriptElement], id = '', name = 'undefined'
|
||||
item #7 = [object HTMLScriptElement], id = '', name = 'undefined'
|
||||
item #8 = [object HTMLPreElement], id = 'out', name = 'undefined'
|
||||
From good string index = [object HTMLInputElement], name = one
|
||||
From bad string index = undefined
|
||||
[object HTMLInputElement], name one
|
||||
[object HTMLInputElement], name two
|
||||
undefined
|
||||
[object HTMLCollection], length = 2
|
||||
first = [object HTMLInputElement]
|
||||
second = [object HTMLInputElement]
|
||||
namedItem('one') = [object HTMLInputElement]
|
||||
namedItem('1') = null
|
||||
namedItem('not in list') = null
|
||||
item() = null
|
||||
item('1') = [object HTMLHeadElement]
|
||||
namedItem(2) = [object HTMLBodyElement]
|
||||
Reference in New Issue
Block a user