<html>
<head>
<script>
    var n = document.location.search.substring(1);
    if (!n) {
      // page just opened
      testRunner.dumpBackForwardList();
      testRunner.dumpAsText();
      testRunner.waitUntilDone();

      document.location = "?1"
    } else {
      // loaded the ?1 navigation
      testRunner.notifyDone();
  }
</script>
</head>
<body>
This tests that assigning to document.location from a script tag doesn't add a back/forward item.
</body>
</html>
