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