haikuwebkit/LayoutTests/fast/dom/Document/replaceChild-null-oldChild-...

11 lines
350 B
Plaintext

Test behavior of Document.replaceChild() when oldChild is null.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS document.replaceChild(document.firstChild, null) threw exception TypeError: Argument 2 ('child') to Node.replaceChild must be an instance of Node.
PASS successfullyParsed is true
TEST COMPLETE