Test that accessing document.dir does not crash for a document with no elements (and is the empty string).

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


PASS doc.dir is ""
PASS successfullyParsed is true

TEST COMPLETE

