Fix lazy test result printing.

Previously, description() and isSuccessfullyParsed() would add their
results to the top of the document immediately, even if
setPrintTestResultsLazily() was used.  This caused problems for
async tests that relied on precise document offset measurements
(such as the IntersectionObserver tests).

With this change, setPrintTestResultsLazily() will cause *all* test
output to be delayed until finishJSTest().

BUG=540528
R=ojan@chromium.org,esprehn@chromium.org

Review URL: https://codereview.chromium.org/1648123004

Cr-Commit-Position: refs/heads/master@{#372902}
9 files changed