Skip to content

Commit 5c77759

Browse files
committed
Add some TODO tests to test/dom/interfaces.lua
1 parent 2cd52e5 commit 5c77759

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/dom/interfaces.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ newelem:setAttribute("test", "---")
107107
assert(newelem.attributes.length == 1)
108108
newelem:setAttribute("xyz", "+++")
109109
assert(newelem.attributes.length == 2)
110+
-- TODO: assert(newelem.attributes[2].ownerElement == newelem)
110111
assert(newelem:getAttribute("test") == "---")
111112
assert(newelem:getAttribute("xyz") == "+++")
112113
assert(newelem:getAttribute("xyz") == newelem.attributes[2].value)
@@ -204,6 +205,7 @@ assert(main:hasAttributes() == true)
204205
assert(main.attributes.length == 2)
205206
assert(main:hasAttribute("class") == true)
206207
assert(main:getAttribute("class") == "foo bar baz etc")
208+
-- TODO: assert(main.attributes.class.ownerElement == main)
207209
assert(main.id == "main")
208210
assert(main.id == main.attributes.id.value)
209211
assert(main.id == main.attributes.id.textContent)

0 commit comments

Comments
 (0)