blob: 3aeb1a1a03f40a009e9a468c3655aa529eb6bd2e [file] [log] [blame]
This test checks behavior of Node.contains.
[test1 [test 2]]
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS typeof document.contains is "function"
PASS test1.contains(test2) is true
PASS test1.contains(test1TextChild) is true
PASS document.contains(test1) is true
PASS document.contains(test1TextChild) is true
PASS document.contains(document) is true
PASS test1.contains(test1) is true
PASS test1TextChild.contains(test1TextChild) is true
PASS test1.contains(123) threw exception TypeError: Argument 1 ('other') to Node.contains must be an instance of Node.
PASS test1.contains(null) is false
PASS document.contains(iframe) is false
PASS iframe.contains(iframe) is true
iframe is now in document
PASS document.contains(iframe) is true
PASS document.contains(iframeDoc) is false
PASS iframeDoc.contains(iframeBody) is true
PASS document.contains(iframeBody) is false
PASS successfullyParsed is true
TEST COMPLETE