MCPcopy Index your code
hub / github.com/pyscript/pyscript / test_append_element

Method test_append_element

core/tests/python/tests/test_web.py:264–271  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

262 assert div.innerHTML == div2.innerHTML == "some value"
263
264 def test_append_element(self):
265 id_ = "element-append-tests"
266 div = web.page[f"#{id_}"]
267 len_children_before = len(div.children)
268 new_el = web.p("new element")
269 div.append(new_el)
270 assert len(div.children) == len_children_before + 1
271 assert div.children[-1].id == new_el.id
272
273 def test_append_dom_element_element(self):
274 id_ = "element-append-tests"

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected