mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
LibWeb/Tests: Port two DOM cloneNode() test cases to text tests
This commit is contained in:
parent
a5fb0b4243
commit
ed03dd0f99
6 changed files with 83 additions and 69 deletions
19
Tests/LibWeb/Text/expected/Attr-cloneNode.txt
Normal file
19
Tests/LibWeb/Text/expected/Attr-cloneNode.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
attr: [object Attr]
|
||||
attr.ownerElement: [object HTMLDivElement]
|
||||
attr.namespaceURI: null
|
||||
attr.localName: foo
|
||||
attr.name: foo
|
||||
attr.value: bar
|
||||
attr.specified: true
|
||||
|
||||
clone: [object Attr]
|
||||
clone.ownerElement: null
|
||||
clone.namespaceURI: null
|
||||
clone.localName: foo
|
||||
clone.name: foo
|
||||
clone.value: bar
|
||||
clone.specified: true
|
||||
|
||||
attr === clone -> false
|
||||
attr.isEqualNode(clone) -> true
|
||||
attr.isEqualNode(other) -> false
|
|
@ -0,0 +1,11 @@
|
|||
pi: [object ProcessingInstruction]
|
||||
pi.target: someTarget
|
||||
pi.data: someData
|
||||
|
||||
clone: [object ProcessingInstruction]
|
||||
clone.target: someTarget
|
||||
clone.data: someData
|
||||
|
||||
pi === clone -> false
|
||||
pi.isEqualNode(clone) -> true
|
||||
pi.isEqualNode(other) -> false
|
Loading…
Add table
Add a link
Reference in a new issue