blob: f42234fdeb144b14eb383854029299206b536005 [file] [log] [blame]
Testing the LayoutNode various constructor parameters.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
No parameter
PASS nodeWithNoParameter.element.localName is "div"
Element parameter
PASS nodeWithElementParameter.element === element is true
HTML string parameter
PASS nodeWithStringParameter.element.localName is "span"
PASS nodeWithStringParameter.element.textContent is "hello world"
PASS nodeWithStringParameter.element.firstElementChild.localName is "strong"
PASS successfullyParsed is true
TEST COMPLETE