blob: 88a864a037d9bc25ee9cb2ebf8b4cbb18c94ae84 [file] [log] [blame]
This tests that Comment is constructable.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS new Comment("one").data is "one"
PASS new Comment().data is ""
PASS new Comment(undefined).data is ""
PASS new Comment(null).data is "null"
PASS new Comment("two").ownerDocument is document
PASS typeof new Comment is "object"
PASS Comment) is "[object Comment]"
PASS new Comment instanceof Comment is true
PASS Object.getPrototypeOf(new Comment) is Comment.prototype
PASS new innerWindow.Comment("three").ownerDocument is innerDocument
PASS new innerWindow.Comment instanceof innerWindow.Comment is true
PASS Object.getPrototypeOf(new innerWindow.Comment) is innerWindow.Comment.prototype
PASS successfullyParsed is true