blob: d3a49a2e91ecf44b271e196fa6f5d766433bd161 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<!DOCTYPE html>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
promise_test(async t => {
var navigationTiming = window.performance.getEntriesByType('navigation')[0];
assert_not_equals(navigationTiming, undefined);
assert_less_than(navigationTiming.startTime, navigationTiming.criticalCHRestart, "Restarts happen after the beginning of the navigation");
assert_less_than(navigationTiming.criticalCHRestart, navigationTiming.fetchStart, "Restarts happen before fetch");
}, "Critical-CH restart navigation timing test");
</script>
</body>
</html>
|