blob: 4388bb21369cfbb2b2a2d725c7add02bb52dab0e [file] [log] [blame]
Testing the LayoutNode.removeChild(child) method.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
node.children = [a, b, c]
PASS node.children.length === 3 is true
PASS node.children[0] === a is true
PASS node.children[1] === b is true
PASS node.children[2] === c is true
node.removeChild(b)
PASS node.children.length === 2 is true
PASS node.children[0] === a is true
PASS node.children[1] === c is true
PASS retVal === b is true
node.removeChild(a)
PASS node.children.length === 1 is true
PASS node.children[0] === c is true
node.removeChild(a)
PASS node.children.length === 1 is true
PASS node.children[0] === c is true
Layout was performed
PASS node.element.childElementCount === 1 is true
PASS node.element.firstElementChild === c.element is true
PASS successfullyParsed is true
TEST COMPLETE