https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c2b8c888626597462c9e9261aa1bedd4c4edb850 authored by Frédéric Wang on 27 June 2018, 07:37:03 UTC
Convert to manual test, add a version where the click happens from a subframe
Tip revision: c2b8c88
nav2_test_instance_accessible_from_the_start.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function() {
  var navigationTiming2 = window.performance.getEntriesByType('navigation')[0];
  assert_true(navigationTiming2 !== undefined);
  assert_equals(navigationTiming2.entryType, "navigation");
  assert_equals(navigationTiming2.startTime, 0);
  assert_equals(navigationTiming2.initiatorType, "navigation");
  done();
}, "PerformanceNavigationTiming instance exists with reasonable values.");
</script>
back to top