<!DOCTYPE HTML>
<title>Log insertion</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function(t) {
  assert_equals(document.body, null);
}, "Log insertion before load");
test(function(t) {
  assert_equals(document.body, null);
}, "Log insertion before load (again)");
async_test(function(t) {
  window.onload = t.step_func_done(function() {
    var body = document.body;
    assert_not_equals(body, null);

    var log = document.ge