.name, "test1");
    opener.assert_equals(history.length, 2);
    history.back()
  },
  () => {
    opener.assert_equals(f.contentWindow.name, "test1", "After navigation");
    t.done();
  }
].map((x, i) => t.step_func(() => {log("Step " + (i+1)); x()}));

next = () => steps.shift()();

onload = () => {
  log("page load");
  f.onload = () => {log("iframe onload"); next()};
  setTimeout(next, 0);
};
</script>
