1
Fork 0
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:
Shannon Booth 2023-08-21 22:07:27 +12:00 committed by Andreas Kling
parent a5fb0b4243
commit ed03dd0f99
6 changed files with 83 additions and 69 deletions

View 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

View file

@ -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