<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/helpers.js"></script>

<script>
promise_test(async t => {
  assert_equals(navigation.entries().length, 1);
  const entry = navigation.currentEntry;

  const result = navigation.traverseTo(navigation.currentEntry.key);
  await assertBothFulfill(t, result, entry);

  assert_equals(navigation.entries().length, 1);
  assert_equals(navigation.currentEntry, entry);
}, "traverseTo() with current key");
</script>
