<!doctype html>
<title>Traverse the history when a history entry is written in the load event</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
  var t = async_test();
  started = false;
  pages = []
  timer = setInterval(
    function() {
      if (pages.length < 3)
        return;
      clearInterval(timer);
      setTimeout(t.step_func(
        function() {
          //The pass condition here is based on the ide